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