1

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)

Image

Image

Image

I tried inserting the values ​​into the BottomNavigationBar

halfer
  • 19,824
  • 17
  • 99
  • 186
  • I have tried to fix the images you added to this post. I wonder if the first two are duplicates of each other. You probably don't need images anyway - images of code/error text are not helpful, since they are not compatible with clipboards, screen-readers, and search engine robots. Always just use text. – halfer Jan 08 '23 at 21:50

1 Answers1

4

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

BottomNavigationBarItem(
    label: 'Some String'
);
szakes1
  • 794
  • 3
  • 16
  • 35