Try out this:-
Wrap your MaterialApp with below code in main.dart class:-
AnnotatedRegion<SystemUiOverlayStyle>(
value: SystemUiOverlayStyle(
statusBarColor: Colors.transparent, //set as per your status bar color
systemNavigationBarColor: Colors.black, //set as per your navigation bar color
statusBarIconBrightness: Brightness.dark, //set as per your status bar icons' color
systemNavigationBarIconBrightness: Brightness.dark,
),
child: MaterialApp(
And if you want change appbar color of whole app then try out below
theme: Theme.of(context).copyWith(
appBarTheme: Theme.of(context)
.appBarTheme
.copyWith(brightness: Brightness.light),
),
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…