Question: how to apply color to statusbar in flutter?
i want to change statusbar color to white. but it loos like gray. i use safeArea, and not use appbar. flutter error so i wrap safearea in Container to set color to white.
@override Widget build(BuildContext context) { return Container( color: Colors.white, // statusbar color child: SafeArea( child: Scaffold( backgroundColor: Theme.of(context).scaffoldBackgroundColor, body: Column( children: [ appBarContainer(), Expanded( child: GetX<PostDetailController>( builder: (controller) { return Scrollbar( child: ListView.builder( itemBuilder: (context, index) { return postContainer(context, controller); }, itemCount: controller.post.length, )); }, ), ) ], ), )), ); } }
9codings