Answers for "flutter status bar color"

7

color of status bar flutter

SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
  statusBarColor: Colors.white
));
Posted by: Guest on October-21-2020
5

flutter status bar color

return AnnotatedRegion<SystemUiOverlayStyle>(
  value: const SystemUiOverlayStyle(
    // For Android.
    // Use [light] for white status bar and [dark] for black status bar.
    statusBarIconBrightness: Brightness.light,
    // For iOS.
    // Use [dark] for white status bar and [light] for black status bar.
    statusBarBrightness: Brightness.dark,
  ),
  child: Scaffold(...),
);
Posted by: Guest on July-21-2020
0

how to change color notification bar in flutter

import 'package:flutter/services.dart';
 Widget build(BuildContext context) {
    SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
       statusBarColor: Color(0xFF2E7D32),
    ));
 
    return MaterialApp()
Posted by: Guest on June-23-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language