Skip to content

Commit

Permalink
Merge pull request #28 from luke-/25-topbar-grey-color
Browse files Browse the repository at this point in the history
Set Topbar to themeColor from manifest
  • Loading branch information
PrimozRatej authored Feb 2, 2023
2 parents 08ed997 + a446359 commit 9867774
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
7 changes: 2 additions & 5 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ class MyApp extends StatelessWidget {

@override
Widget build(BuildContext context) {
return MaterialApp(
return const MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(
primaryColor: const Color(0xff21A1B3),
),
home: const Redirector(),
home: Redirector(),
);
}
}
13 changes: 6 additions & 7 deletions lib/pages/web_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ class WebViewAppState extends ConsumerState<WebViewApp> {

@override
Widget build(BuildContext context) {
return SafeArea(
child: WillPopScope(
onWillPop: () => webViewController.exitApp(context, ref),
child: Scaffold(
key: scaffoldKey,
body: WebViewWidget(controller: webViewController)),
),
return WillPopScope(
onWillPop: () => webViewController.exitApp(context, ref),
child: Scaffold(
key: scaffoldKey,
backgroundColor: HexColor(widget.manifest.themeColor),
body: SafeArea(child: WebViewWidget(controller: webViewController))),
);
}
}

0 comments on commit 9867774

Please sign in to comment.