简体   繁体   中英

How to find height of widget and set padding of GoogleMap in Flutter

I am using google_maps_flutter: ^1.1.1

I need to find the height of a Widget and set padding according to this height .

这是图片链接

See this: How to get height of a Widget?

And also you can use this package, https://pub.dev/packages/render_metrics combining with: https://pub.dev/packages/after_layout .

Second package is for callback after first layout build.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM