Get rid of gray rectangle overlay on PageView Flutter

Issue

does anybody know how to get rid of this gray overlay that you get when you long-press on BottomNavigationBarItem. It is really frustrating and it kills my esthetics?

enter image description here

Thank You!

Solution

By default a BottomNavigationBarItem displays a tooltip. If you don’t set it, value of label is used, which in your case seems to be empty.
Add an explicit tooltip with empty string to every BottomNavigationBarItem in order to disable tooltip:

BottomNavigationBarItem(
  tooltip: '',
),

Answered By – Peter Koltai

Answer Checked By – Pedro (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published.