【发布时间】:2021-04-19 05:15:47
【问题描述】:
在我的应用栏中,我将背景颜色设置为 Colors.white,但状态栏颜色仍然是灰色,而它正在正确选择其他颜色。
我不想更改整个应用的状态栏颜色,所以我没有使用:
SystemChrome.setSystemUIOverlayStyle(
SystemUiOverlayStyle(statusBarColor: Colors.white));
我的代码:
appBar: PreferredSize(
preferredSize: Size.fromHeight(0),
child: AppBar(
backgroundColor: Colors.white,
elevation: 0,
brightness: Brightness.light,
),
),
【问题讨论】: