so i have this flutter app, and i'm trying to hide or remove the title. I tried leaving the title as an empty string i.e. new Text("")
but that messed with the alignment of the navbar.
Desired Outcome:
What i'm getting (if i leave the title as empty string):
:
Solution: In the BottomNavigationBar set the “selectedFontSize” to 0. Then set the BottomNavigationBarItem “label” property to empty string.
Now let's create our bottom navigation bar. In the HomePage class let's define the bottomNavigationBar attribute and assign a Container to it. Give it a height of 60 with some BoxDecoration (Pixels) add a Row as the child of the Container. Set the main axis alignment to space around.
There are two workarounds for this problem, as this feature is not yet implemented.
Container(height: 0.0)
instead of Text("")
Update:
Just add this to your BottomNavigationBar
showSelectedLabels: false, showUnselectedLabels: false,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With