草庐IT

dart - Flutter - 如何在 AppBar 不存在时设置状态栏颜色

当AppBar不存在时如何设置状态栏颜色。我试过了,但没有用。Widgetbuild(BuildContextcontext){SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.dark);returnnewScaffold(body:newContainer(color:UniQueryColors.colorBackground,child:newListView.builder(itemCount:7,itemBuilder:(BuildContextcontext,intindex){if(index==0){r

flutter - 如何更改 appBar 后退按钮颜色

我不知道如何将appBar的自动后退按钮更改为不同的颜色。它在一个脚手架下,我试图研究它,但我无法绕着它转。returnScaffold(appBar:AppBar(backgroundColor:Colors.white,title:Image.asset('images/.jpg',fit:BoxFit.fill,),centerTitle:true,), 最佳答案 您必须使用AppBar中的iconTheme属性,如下所示:appBar:AppBar(iconTheme:IconThemeData(color:Colors.b