INNER CODE UNIT · Dart
MyApp
sterrenb/flutterhole · lib/main.dart:39
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ChangeNotifierProvider<ThemeModeNotifier>(
create: (_) => ThemeModeNotifier(),
child: MultiBlocProvider(
providers: [
BlocProvider<ListBloc>(
create: (_) =>
getIt<ListBloc>()..add(const ListBlocEvent.fetchLists()),
),
BlocProvider<ExtrasBloc>(
create: (_) => getIt<ExtrasBloc>()..add(ExtrasEvent.start()),
),
],
child: ExtrasBlocManager(
child: Consumer<ThemeModeNotifier>(
builder: (