The error I get is: All final variables must be initialized, but 'clicked' isn't.
Try adding an initializer for the field.
I was trying to pass the clicked data to another page by using BottomNavigationBar. I need to use constructors. I need 2 of them which is one of them has to be empty in my case. How can I do this?
You are not using the empty constructor in
myHome.dart
but the one that needs an argument. So inmyHome.dart
line 16 should be:List<Widget> _screens = [MainHomeView(), KullaniciSayfasi.empty()];