1
🎨 System Overlay Styling
addAnnotatedRegion({Color? statusBarColor, Brightness? statusBarBrightness, Color? navigationBarColor, Brightness? navigationBarBrightness})
Widget
Show Parameters
Show Parameters
The
background color of the status bar overlay.Controls the
brightness of status bar icons (e.g., Brightness.light for dark icons, Brightness.dark for light icons).The
background color of the system navigation bar (bottom bar on Android).Controls the
brightness of the navigation bar icons.Scaffold in an AnnotatedRegion to customize the system status bar and navigation bar overlays.Copy
// Ensures status bar icons (clock, battery) are white/light:
return myScaffold.addAnnotatedRegion(
statusBarBrightness: Brightness.light, // Controls icon/text color
statusBarColor: Colors.black, // Status bar background color
);
