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.