這是我的導航欄主題資料
navigationBarTheme: NavigationBarThemeData(
backgroundColor: Color(0xff0100f5b),
indicatorColor: Color(0xff5454c2),
labelTextStyle: MaterialStateProperty.all(const TextStyle(
color: Colors.white,
fontSize: 14,
fontWeight: FontWeight.bold,
)),
iconTheme: MaterialStateProperty.all(const IconThemeData(
color: Color(0xffffffff),
size: 25,
)),
),
這是我的 SystemChrome 代碼
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
systemStatusBarContrastEnforced: true,
statusBarBrightness: Brightness.light,
systemNavigationBarContrastEnforced: true,
systemNavigationBarColor: Colors.transparent,
));
這就是它的外觀。

我不明白為什么它不能像應用欄通過狀態欄上升一樣下降。
提前致謝。
uj5u.com熱心網友回復:
BottomNavigationBar用這個包裹起來
return SafeArea(
bottom: true,
child: BottomNavigationBar(...),
)
uj5u.com熱心網友回復:
你忘記放腳手架了嗎?
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/421010.html
標籤:
上一篇:如何限制顫動的Textfield或TextFormField只接受英語?
下一篇:未來函式無限重新加載?撲
