opt: nav icon color

ref orz12/main
This commit is contained in:
bggRGjQaUbCoE
2025-02-22 20:37:47 +08:00
parent 9ebc054c8c
commit 6a615c408b

View File

@@ -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>
},
),
),
),
);
}