fix order, update qr
This commit is contained in:
@@ -14,10 +14,11 @@ class AppTheme {
|
||||
/// Light theme configuration
|
||||
/// [seedColor] - Optional custom seed color, defaults to AppColors.defaultSeedColor
|
||||
static ThemeData lightTheme([Color? seedColor]) {
|
||||
final seed = seedColor ?? AppColors.defaultSeedColor;
|
||||
final ColorScheme colorScheme = ColorScheme.fromSeed(
|
||||
seedColor: seedColor ?? AppColors.defaultSeedColor,
|
||||
seedColor: seed,
|
||||
brightness: Brightness.light,
|
||||
);
|
||||
).copyWith(primary: seed);
|
||||
|
||||
return ThemeData(
|
||||
useMaterial3: true,
|
||||
@@ -239,10 +240,11 @@ class AppTheme {
|
||||
/// Dark theme configuration
|
||||
/// [seedColor] - Optional custom seed color, defaults to AppColors.defaultSeedColor
|
||||
static ThemeData darkTheme([Color? seedColor]) {
|
||||
final seed = seedColor ?? AppColors.defaultSeedColor;
|
||||
final ColorScheme colorScheme = ColorScheme.fromSeed(
|
||||
seedColor: seedColor ?? AppColors.defaultSeedColor,
|
||||
seedColor: seed,
|
||||
brightness: Brightness.dark,
|
||||
);
|
||||
).copyWith(primary: seed);
|
||||
|
||||
return ThemeData(
|
||||
useMaterial3: true,
|
||||
|
||||
Reference in New Issue
Block a user