Sometimes it works, and sometimes it doesn't. As soon as something causes the insets to change, it works, but that first call to SafeArea.getSafeAreaInsets sometimes has the values and sometimes doesn't.
Is there a particular event I need to wait for before that first call?
I'm experiencing this in iOS. Haven't tried Android.
I can't seem to figure out how to reliably get the correct values upon launch.
I'm doing this:
Sometimes it works, and sometimes it doesn't. As soon as something causes the insets to change, it works, but that first call to
SafeArea.getSafeAreaInsets
sometimes has the values and sometimes doesn't.Is there a particular event I need to wait for before that first call?
I'm experiencing this in iOS. Haven't tried Android.