Home > Back-end >  Please help, I have a problem with BottomNavigationBar
Please help, I have a problem with BottomNavigationBar

Time:11-30

When I connect the application to the phone, I run it, and this appears

It also appears in the DEBUG CONSOLE list, which is in blue and does not stop counting

Exception has occurred. _AssertionError ('package:flutter/src/material/bottom_navigation_bar.dart': Failed assertion: line 188 pos 11: 'items.every((BottomNavigationBarItem item) => item.label != null)': Every item must have a non-null label)

[enter image description here](https://i.stack.imgur.com/VdC9r.jpg)

https://i.stack.imgur.com/vu2rN.jpg

I tried inserting the values ​​into the BottomNavigationBar

CodePudding user response:

You need to add a label to your BottomNavigationBarItem. It must not be null. Here's the example:

BottomNavigationBarItem(
    label: 'Some String'
);

CodePudding user response:

just as @szakes1 label your bottom nav will solve it!

  • Related