bannerThemeData static method

MaterialBannerThemeData bannerThemeData(
  1. Palette colors,
  2. TextTheme textTheme
)

Implementation

static MaterialBannerThemeData bannerThemeData(
  Palette colors,
  TextTheme textTheme,
) {
  return MaterialBannerThemeData(
    backgroundColor: colors.fill,
    surfaceTintColor: colors.fill,
    shadowColor: Colors.transparent,
    dividerColor: Colors.transparent,
    // Copy defaults from Banner.dart
    contentTextStyle: textTheme.bodyLarge!.copyWith(
      color: colors.fillText,
      fontWeight: FontWeight.w900,
      height: 1.0,
    ),
  );
}