Skip to content

Commit

Permalink
fix: preview app shows debug banner in other theme than material
Browse files Browse the repository at this point in the history
  • Loading branch information
br1anchen committed Aug 2, 2022
1 parent 4ef9d70 commit 1f2e69a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Widget _defaultAppBuilderMethod(BuildContext context, Widget child) {
builder: (context, childWidget) {
return childWidget ?? child;
},
debugShowCheckedModeBanner: false,
routeInformationParser: _router.routeInformationParser,
routerDelegate: _router.routerDelegate,
);
Expand All @@ -41,6 +42,7 @@ AppBuilderFunction get cupertinoAppBuilder =>
(BuildContext context, Widget child) {
final _router = getRouter(child);
return CupertinoApp.router(
debugShowCheckedModeBanner: false,
routerDelegate: _router.routerDelegate,
routeInformationParser: _router.routeInformationParser,
);
Expand Down

0 comments on commit 1f2e69a

Please sign in to comment.