theme property

ThemeData get theme

Implementation

static ThemeData get theme => ThemeData(
      primaryColor: palette.primary,
      primaryColorDark: palette.primaryDark,
      backgroundColor: palette.background,
      scaffoldBackgroundColor: palette.background,
      colorScheme: ColorScheme.fromSwatch(
        primarySwatch: palette.material as MaterialColor,
        primaryColorDark: palette.primaryDark,
        accentColor: palette.accent,
        backgroundColor: palette.background,
        cardColor: palette.background,
        errorColor: palette.error,
      ).copyWith(
        primary: palette.primary,
        secondary: palette.accent,
        background: palette.background,
        error: palette.error,
        onPrimary: palette.onPrimary,
        onSecondary: palette.onAccent,
        onBackground: palette.onBackground,
        onError: palette.background,
      ),
    );