Error in Bottomnavigationbar Flutter dart

38 Views Asked by At

I'm having problems because the IDE tells me there is an error. 1 positional argument expected by 'BottomNavigationBarItem.new', but 0 found. and this is my code. I've been trying to solve it for days but I can't find a way.

enter image description here

1

There are 1 best solutions below

0
Chihiro On

It might be that the Flutter version is a bit outdated. Try replacing icon with child and see if that works.