Getting started
flutter pub add multi_bloc_builder
Usage
import 'package:multi_bloc_builder/multi_bloc_builder.dart';
MultiBlocBuilder(
blocs: [
context.watch<DataOneCubit>(),
context.watch<DataTwoCubit>(),
],
builder: (context, states) {
DataOneState one = states[0];
DataTwoState two = states[1];
return Column(
children: [
Text(one.toString()),
Text(two.toString()),
],
);
},
)