flutter bloc multiple repository provider code example
Example 1: multiblocprovider
MultiBlocProvider(
providers: [
BlocProvider<BlocA>(
create: (BuildContext context) => BlocA(),
),
BlocProvider<BlocB>(
create: (BuildContext context) => BlocB(),
),
BlocProvider<BlocC>(
create: (BuildContext context) => BlocC(),
),
],
child: ChildA(),
)
Example 2: bloc flutter
dependencies:
flutter_bloc: ^4.0.1