private static ThemeData _buildLightTheme() { Color primaryColor = new Color(0xFF0175c2); Color secondaryColor = new Color(0xFF13B9FD); ColorScheme colorScheme = ColorScheme.light().copyWith( primary: primaryColor, secondary: secondaryColor ); ThemeData baseTheme = new ThemeData( brightness: Brightness.light, accentColorBrightness: Brightness.dark, colorScheme: colorScheme, primaryColor: primaryColor, buttonColor: primaryColor, indicatorColor: Colors.white, toggleableActiveColor: new Color(0xFF1E88E5), splashColor: Colors.white24, splashFactory: InkRipple.splashFactory, accentColor: secondaryColor, canvasColor: Colors.white, scaffoldBackgroundColor: Colors.white, backgroundColor: Colors.white, errorColor: new Color(0xFFB00020), buttonTheme: new ButtonThemeData( colorScheme: colorScheme, textTheme: ButtonTextTheme.primary ) ); return(baseTheme.copyWith( textTheme: _buildTextTheme(baseTheme.textTheme), primaryTextTheme: _buildTextTheme(baseTheme.primaryTextTheme), accentTextTheme: _buildTextTheme(baseTheme.accentTextTheme) )); }
static ThemeData _buildShrineTheme() { ThemeData _base = ThemeData.light(); return(_base.copyWith( colorScheme: kShrineColorScheme, accentColor: shrineColorsUtils.kShrineBrown900, primaryColor: shrineColorsUtils.kShrinePink100, buttonColor: shrineColorsUtils.kShrinePink100, scaffoldBackgroundColor: shrineColorsUtils.kShrineBackgroundWhite, cardColor: shrineColorsUtils.kShrineBackgroundWhite, textSelectionColor: shrineColorsUtils.kShrinePink100, errorColor: shrineColorsUtils.kShrineErrorRed, buttonTheme: new ButtonThemeData( colorScheme: kShrineColorScheme, textTheme: ButtonTextTheme.normal ), primaryIconTheme: _customIconTheme(_base.iconTheme), inputDecorationTheme: new InputDecorationTheme(border: new CutCornersBorder()), textTheme: _buildShrineTextTheme(_base.textTheme), primaryTextTheme: _buildShrineTextTheme(_base.primaryTextTheme), accentTextTheme: _buildShrineTextTheme(_base.accentTextTheme), iconTheme: _customIconTheme(_base.iconTheme) )); }
private static ThemeData _buildDarkTheme() { Color primaryColor = new Color(0xFF0175c2); Color secondaryColor = new Color(0xFF13B9FD); ColorScheme colorScheme = ColorScheme.dark().copyWith( primary: primaryColor, secondary: secondaryColor ); ThemeData baseTheme = new ThemeData( brightness: Brightness.dark, accentColorBrightness: Brightness.dark, primaryColor: primaryColor, primaryColorDark: new Color(0xFF0050a0), primaryColorLight: secondaryColor, buttonColor: primaryColor, indicatorColor: Colors.white, toggleableActiveColor: new Color(0xFF6997DF), accentColor: secondaryColor, canvasColor: new Color(0xFF202124), scaffoldBackgroundColor: new Color(0xFF202124), backgroundColor: new Color(0xFF202124), errorColor: new Color(0xFFB00020), buttonTheme: new ButtonThemeData( colorScheme: colorScheme, textTheme: ButtonTextTheme.primary ) ); return(baseTheme.copyWith( textTheme: _buildTextTheme(baseTheme.textTheme), primaryTextTheme: _buildTextTheme(baseTheme.primaryTextTheme), accentTextTheme: _buildTextTheme(baseTheme.accentTextTheme) )); }
static ThemeData _buildDarkTheme() { Color primaryColor = new Color(0xFF0175c2); Color secondaryColor = new Color(0xFF13B9FD); ThemeData baseTheme = ThemeData.dark(); ColorScheme colorScheme = ColorScheme.dark().copyWith( primary: primaryColor, secondary: secondaryColor ); return(baseTheme.copyWith( primaryColor: primaryColor, buttonColor: primaryColor, indicatorColor: Colors.white, accentColor: secondaryColor, canvasColor: new Color(0xFF202124), scaffoldBackgroundColor: new Color(0xFF202124), backgroundColor: new Color(0xFF202124), errorColor: new Color(0xFFB00020), buttonTheme: new ButtonThemeData( colorScheme: colorScheme, textTheme: ButtonTextTheme.primary ), textTheme: _buildTextTheme(baseTheme.textTheme), primaryTextTheme: _buildTextTheme(baseTheme.primaryTextTheme), accentTextTheme: _buildTextTheme(baseTheme.accentTextTheme) )); }