Skip to content

Commit

Permalink
finished device tag ui
Browse files Browse the repository at this point in the history
  • Loading branch information
hagaygo committed May 10, 2024
1 parent a6170f5 commit bcebc95
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/Page/mainPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,15 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver {
final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>();

@override
Widget build(BuildContext context) {
Widget build(BuildContext context) {
return Scaffold(
key: _scaffoldKey,
drawer: buildDrawer(context),
appBar: AppBar(
systemOverlayStyle: SystemUiOverlayStyle(
systemNavigationBarColor: Theme.of(context).primaryColorDark,
statusBarColor: Theme.of(context).primaryColorDark,
),
title: Text('OpenWrt Overview'),
leading: GestureDetector(
onTap: () {
Expand Down Expand Up @@ -179,7 +183,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver {
},
),
bottomNavigationBar: Container(
color: Theme.of(context).highlightColor ,
color: Theme.of(context).cardColor ,
child: SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
Expand Down Expand Up @@ -216,7 +220,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver {
}

TextStyle getDeviceTagButtonTextStyle(bool selectedButton) {
if (selectedButton) return TextStyle(color: Theme.of(context).canvasColor);
if (selectedButton) return TextStyle(color: Theme.of(context).primaryColorLight);
return TextStyle();
}

Expand Down

0 comments on commit bcebc95

Please sign in to comment.