FlutterUI开发-改变状态栏颜色

人工智能65

1:使用AppBar

 // brightness:关键代码

 appBar: AppBar(
          title: Text('appbar',style: TextStyle(color: Colors.black),),
          brightness: Brightness.light,
          backgroundColor: Colors.white,
),

2:未使用AppBar

单页设置更改状态栏颜色

   return AnnotatedRegion(
        value: SystemUiOverlayStyle.dark,
        child: Scaffold(
          resizeToAvoidBottomInset: false,
          body: Column(),
        )
    );

Original: https://www.cnblogs.com/oceaneyes-gzy/p/12317367.html
Author: OCEANEYES.GZY
Title: FlutterUI开发-改变状态栏颜色