herodotdigital / SnakeBottomNavigationBar

Apache License 2.0
207 stars 51 forks source link

How to remove space from bottom of navigation bar it is issue only in IOS device working fine in andoid #24

Closed radheyjat closed 3 years ago

radheyjat commented 3 years ago

In Android working fine as expected but when run on ios same app it's show some margin on bottom

Android Screenshoot Screenshot from 2021-07-05 17-46-02

IOS Screenshoot Screenshot from 2021-07-05 17-43-36

GoltVik commented 3 years ago

Hello @radheyjat! Android works the same in this example but with other navigation :) This gap is the default navigation handle padding per platform to prevent overlapping. New Android versions have the same handle so it will be the same.

You can wrap yours NavigationBar into MediaQuery.removePadding widget to remove this gap:

MediaQuery.removePadding( context: context, removeBottom: true, child:<SnakeNavigationBar> )

GoltVik commented 3 years ago

@radheyjat, if this solution is satisfying for you, please close this issue ;) Thank you!

radheyjat commented 3 years ago

Thanks for solution. apology for delay this solution works for me.