美文网首页
Flutter修改状态栏的颜色

Flutter修改状态栏的颜色

作者: 东风不起尘 | 来源:发表于2022-02-17 13:46 被阅读0次

@override

Widget build(BuildContext context) {

return Scaffold(

backgroundColor: Colors.white,

appBar:AppBar(

systemOverlayStyle:SystemUiOverlayStyle(

systemNavigationBarColor:Color(0xFF000000),

systemNavigationBarDividerColor:null,

statusBarColor: Colors.white,

systemNavigationBarIconBrightness: Brightness.light,

statusBarIconBrightness: Brightness.dark,

statusBarBrightness: Brightness.light,

),

backgroundColor: Colors.white,

centerTitle:true,

elevation:0,

)

}

相关文章

网友评论

      本文标题:Flutter修改状态栏的颜色

      本文链接:https://www.haomeiwen.com/subject/rjqslrtx.html