mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: nav icon color
ref orz12/main
This commit is contained in:
@@ -184,6 +184,14 @@ class _MainAppState extends State<MainApp>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
child: AnnotatedRegion<SystemUiOverlayStyle>(
|
||||||
|
value: SystemUiOverlayStyle(
|
||||||
|
systemNavigationBarColor: Colors.transparent,
|
||||||
|
systemNavigationBarIconBrightness:
|
||||||
|
Theme.of(context).brightness == Brightness.light
|
||||||
|
? Brightness.dark
|
||||||
|
: Brightness.light, // 设置虚拟按键图标颜色
|
||||||
|
),
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
extendBody: true,
|
extendBody: true,
|
||||||
@@ -250,8 +258,8 @@ class _MainAppState extends State<MainApp>
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
bottomNavigationBar:
|
bottomNavigationBar: useSideBar ||
|
||||||
useSideBar || context.orientation == Orientation.landscape
|
context.orientation == Orientation.landscape
|
||||||
? null
|
? null
|
||||||
: StreamBuilder(
|
: StreamBuilder(
|
||||||
stream: _mainController.hideTabBar
|
stream: _mainController.hideTabBar
|
||||||
@@ -325,6 +333,7 @@ class _MainAppState extends State<MainApp>
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user