如何在没有 AppBar 的情况下更改状态栏颜色?
我的代码片段:
@override
Widget build(BuildContext context) {
return Scaffold(
body: AnnotatedRegion<SystemUiOverlayStyle>(
value: SystemUiOverlayStyle.light,
child: BodyWidget(),
),//
);
}
Run Code Online (Sandbox Code Playgroud)