I am using a BottomNavigationBar
and want to remove the safe area / viewInsets padding given to the bar. I am not referring to the typical answers to similar questions (setting font size to zero or hiding the labels). I am referring to the system padding added to keep the bar above system items like the iPhone X bottom bar, which seems to be the value of MediaQuery.of(context).viewInsets.bottom
.
The reason is that in some situations I want to place something below the BottomNavigationBar
, as odd as that sounds. In this case, the additional padding is still supplied and makes the bar have an awkward amount of padding below it before the bottom widget.
Is this even possible or would I need to construct a custom widget instead?
2
Answers
I think this is correct:
But it really depends on your code.
You can use SafeArea – If the UI you don’t care too much =))
Or you can have it auto-hide
However, you can combine the two.
Hope useful to you! xD