Issue
In all my apps, I get the problem of having my widgets place themselves under the camera/notification bar.
I usually just place a sizedbox at the top to prevent it but it feels like a bad solution.
Is there any other way to prevent it?
Solution
To fix your issue you have to wrap your widget inside a SafeArea
SafeArea(
child: MyWidget(),
)
Answered By - quoci
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.