The bloc state does not work when entering the application - Flutter
Try adding parameter listen: false
, while accessing the provider in your initState as:
BlocProvider.of<TodoBloc>(context,listen:false).add(LoadTodos());
This is because if you want to access provider in your initState, you should set the listen parameter to false.