Skip to content

Commit

Permalink
Update golden helper
Browse files Browse the repository at this point in the history
  • Loading branch information
JvnSlv committed Feb 3, 2025
1 parent eecf104 commit 6762486
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ Future<void> pumpScenarioBuilderWithMaterialApp(
Iterable<Locale>? localeOverrides,
ThemeData? theme,
}) async {
await onlyPumpWidget(
await tester.runAsync(
() async => await onlyPumpWidget(
tester,
_buildMaterialAppWrapper(
child: widget,
Expand All @@ -214,7 +215,9 @@ Future<void> pumpScenarioBuilderWithMaterialApp(
navigatorObserver: navigatorObserver,
localeOverrides: localeOverrides,
theme: theme,
));
),
),
);
}

/// Wraps the provided [child] with a [MaterialApp] to ensure that the golden
Expand Down

0 comments on commit 6762486

Please sign in to comment.