multi_bloc_builder 0.0.1 copy "multi_bloc_builder: ^0.0.1" to clipboard
multi_bloc_builder: ^0.0.1 copied to clipboard

VERY COOL MULTI BLOC BUILDER

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()),
            ],
        );
    },
)