convert to multi bloc provider

This commit is contained in:
Naser Elziadna
2022-02-09 15:24:54 +02:00
parent aa879da0c7
commit 54c06a7ec6

View File

@@ -31,8 +31,15 @@ class _ToolsWidgetState extends State<ToolsWidget> {
@override
Widget build(BuildContext context) {
return BlocProvider(
create: (context) => DoddlerBloc(),
return MultiBlocProvider(
providers: [
BlocProvider(
create: (context) => DoddlerBloc(),
),
BlocProvider(
create: (context) => RecorderBloc(),
),
],
child: Container(
height: MediaQuery.of(context).size.height * .1,
color: Colors.purple[800],