Can't solve problem with FloatingActionButton
You have to use MultiBlocProvider
before MaterialApp.
just do like that
@override
Widget build(BuildContext context) => MultiBlocProvider(
providers: [
BlocProvider(create: (_) => TodoBloc()),
],
child: MaterialApp()
);