Sum*_*aul 5 flutter flutter-theme flutter-bottomnavigation
使用手势导航时,如何更改底部导航下方区域的背景颜色。
好吧,经过一番折腾,我得到了这个答案。
我们需要用 包裹材质应用程序/支架AnnotatedRegion。
所以我通过以下方式更改了main.dart :
AnnotatedRegion<SystemUiOverlayStyle>(
value: SystemUiOverlayStyle(
statusBarColor: Colors.transparent, //top status bar
systemNavigationBarColor: Colors.black, // navigation bar color, the one Im looking for
statusBarIconBrightness: Brightness.dark, // status bar icons' color
systemNavigationBarIconBrightness:
Brightness.dark, //navigation bar icons' color
),
child: MaterialApp(
debugShowCheckedModeBanner: false,
Run Code Online (Sandbox Code Playgroud)
重建工作进展顺利。
希望这可以帮助!:)
| 归档时间: |
|
| 查看次数: |
1550 次 |
| 最近记录: |