How to set status bar color when AppBar not present.
I have tried this but not working.
Widget build(BuildContext context) {
SystemChrome.setSys
you just have to add this if you want to use as default template in the MaterialApp Theme :
appBarTheme: AppBarTheme(brightness: Brightness.light)
Result will be like this :
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
appBarTheme: AppBarTheme(brightness: Brightness.light), <========
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: ...,
);