Change Status Bar Background Color
Complete Code For Change Status Bar Background Color In Flutter
Main.dart
import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( statusBarColor: Colors.indigo, )); return MaterialApp( debugShowCheckedModeBanner: false, home: Scaffold( appBar: AppBar( backgroundColor: Colors.pink[300], title: Text('Set Status Bar Background Color'), ), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children:[ Text('Set Status Bar Background Color', style: TextStyle(fontSize: 20),) ], ) ) ) ); } }