appBarTheme method

ThemeData appBarTheme (BuildContext context)

The theme used to style the AppBar.

By default, a white theme is used.

See also:

Implementation

ThemeData appBarTheme(BuildContext context) {
  assert(context != null);
  final ThemeData theme = Theme.of(context);
  assert(theme != null);
  return theme.copyWith(
    primaryColor: Colors.white,
    primaryIconTheme: theme.primaryIconTheme.copyWith(color: Colors.grey),
    primaryColorBrightness: Brightness.light,
    primaryTextTheme: theme.textTheme,
  );
}