how to change appbar color in flutter code example
Example 1: change icon color flutter
Icon(
Icons.widgets,
color: Colors.blue.shade400,
)
Example 2: how to change appbar color in flutter
appBar: AppBar(
title: const Text('Example'),
backgroundColor: Colors.black,
),
Example 3: 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(...),
);