From e0fab6a25ae28283c16b36e721225ddeaee0c345 Mon Sep 17 00:00:00 2001 From: RuiAlonso Date: Mon, 9 May 2022 19:51:06 +0200 Subject: [PATCH] test: multiblocprovider --- .../behaviors/ramp_bonus_behavior_test.dart | 14 ++++++++------ .../behaviors/ramp_shot_behavior_test.dart | 14 ++++++++------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/test/game/components/android_acres/behaviors/ramp_bonus_behavior_test.dart b/test/game/components/android_acres/behaviors/ramp_bonus_behavior_test.dart index 0fc487b1..3f9d6d9d 100644 --- a/test/game/components/android_acres/behaviors/ramp_bonus_behavior_test.dart +++ b/test/game/components/android_acres/behaviors/ramp_bonus_behavior_test.dart @@ -42,16 +42,18 @@ class _TestGame extends Forge2DGame { required GameBloc gameBloc, }) async { await ensureAdd( - FlameBlocProvider.value( - value: gameBloc, - children: [ + FlameMultiBlocProvider( + providers: [ + FlameBlocProvider.value( + value: gameBloc, + ), FlameBlocProvider.value( value: bloc, - children: [ - ZCanvasComponent(children: children), - ], ), ], + children: [ + ZCanvasComponent(children: children), + ], ), ); } diff --git a/test/game/components/android_acres/behaviors/ramp_shot_behavior_test.dart b/test/game/components/android_acres/behaviors/ramp_shot_behavior_test.dart index 289c886f..e0a55c0a 100644 --- a/test/game/components/android_acres/behaviors/ramp_shot_behavior_test.dart +++ b/test/game/components/android_acres/behaviors/ramp_shot_behavior_test.dart @@ -42,16 +42,18 @@ class _TestGame extends Forge2DGame { required GameBloc gameBloc, }) async { await ensureAdd( - FlameBlocProvider.value( - value: gameBloc, - children: [ + FlameMultiBlocProvider( + providers: [ + FlameBlocProvider.value( + value: gameBloc, + ), FlameBlocProvider.value( value: bloc, - children: [ - ZCanvasComponent(children: children), - ], ), ], + children: [ + ZCanvasComponent(children: children), + ], ), ); }