📜  flutter ios 状态栏变暗 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:03.027000             🧑  作者: Mango

代码示例1
@Antoine Basically you can set your theme Brightness, or you can manually override the appbar brightness using the following :

appBar: new AppBar(
  title: new Text(widget.title),
  brightness: Brightness.light, // or use Brightness.dark
),
Do note that this will only switch between white and black status text color.

.dark will make the status bar text WHITE, while .light will make the status bar text BLACK

Maybe for a more custom color, like the comment said you can view SystemChrome class.