skip to Main Content

Flutter BloC couldn't find correct provider when context.read is called

I created a basic project to learn Flutter better. In bnb.dart file if I use: context.read<AppBottomNavigationBarState>().selectedIndex to change the currentIndex field of the BottomNavigationBar. The application throws: The following ProviderNotFoundException was thrown building BlocBuilder<AppBottomNavigationBarCubit, AppBottomNavigationBarState> But if I change that…

VIEW QUESTION
Back To Top
Search