appBarTheme method

ThemeData appBarTheme(
  1. BuildContext context
)

The theme used to style the AppBar.

By default, a white theme is used.

See also:

Implementation

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