cake_wallet/lib/themes/theme_base.dart
2023-07-03 09:03:35 -03:00

34 lines
No EOL
791 B
Dart

import 'package:flutter/material.dart';
enum ThemeType { light, bright, dark }
abstract class ThemeBase {
ThemeBase({required this.raw});
final int raw;
String get title;
ThemeType get type;
@override
String toString() {
return title;
}
Brightness get brightness;
Color get backgroundColor;
Color get primaryColor;
Color get primaryTextColor;
Color get containerColor;
ColorScheme get colorScheme => ColorScheme.fromSeed(
brightness: brightness,
seedColor: primaryColor,
background: backgroundColor);
ThemeData get themeData => ThemeData.from(
colorScheme: colorScheme,
textTheme: TextTheme().apply(fontFamily: 'Lato'))
.copyWith(
primaryColor: primaryColor,
cardColor: containerColor);
}