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(
|
||||
resizeToAvoidBottomInset: false,
|
||||
extendBody: true,
|
||||
@@ -250,8 +258,8 @@ class _MainAppState extends State<MainApp>
|
||||
),
|
||||
],
|
||||
),
|
||||
bottomNavigationBar:
|
||||
useSideBar || context.orientation == Orientation.landscape
|
||||
bottomNavigationBar: useSideBar ||
|
||||
context.orientation == Orientation.landscape
|
||||
? null
|
||||
: StreamBuilder(
|
||||
stream: _mainController.hideTabBar
|
||||
@@ -325,6 +333,7 @@ class _MainAppState extends State<MainApp>
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user