pass theme id

This commit is contained in:
julian 2023-05-09 10:24:37 -06:00
parent efec395c79
commit bd476a04a0

View file

@ -4,7 +4,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
import 'package:stackwallet/utilities/theme/color_theme.dart'; import 'package:stackwallet/utilities/theme/color_theme.dart';
class StackColors extends ThemeExtension<StackColors> { class StackColors extends ThemeExtension<StackColors> {
final ThemeType themeType; final String themeId;
final Brightness brightness; final Brightness brightness;
final Color background; final Color background;
@ -203,7 +203,7 @@ class StackColors extends ThemeExtension<StackColors> {
final BoxShadow? homeViewButtonBarBoxShadow; final BoxShadow? homeViewButtonBarBoxShadow;
StackColors({ StackColors({
required this.themeType, required this.themeId,
required this.brightness, required this.brightness,
required this.background, required this.background,
required this.backgroundAppBar, required this.backgroundAppBar,
@ -362,7 +362,7 @@ class StackColors extends ThemeExtension<StackColors> {
factory StackColors.fromStackColorTheme(StackTheme colorTheme) { factory StackColors.fromStackColorTheme(StackTheme colorTheme) {
return StackColors( return StackColors(
themeType: colorTheme.themeType, themeId: colorTheme.idOnServer,
brightness: colorTheme.brightness, brightness: colorTheme.brightness,
background: colorTheme.background, background: colorTheme.background,
backgroundAppBar: colorTheme.backgroundAppBar, backgroundAppBar: colorTheme.backgroundAppBar,
@ -525,7 +525,7 @@ class StackColors extends ThemeExtension<StackColors> {
@override @override
ThemeExtension<StackColors> copyWith({ ThemeExtension<StackColors> copyWith({
ThemeType? themeType, String? themeId,
Brightness? brightness, Brightness? brightness,
Color? background, Color? background,
Color? backgroundAppBar, Color? backgroundAppBar,
@ -682,7 +682,7 @@ class StackColors extends ThemeExtension<StackColors> {
BoxShadow? standardBoxShadow, BoxShadow? standardBoxShadow,
}) { }) {
return StackColors( return StackColors(
themeType: themeType ?? this.themeType, themeId: themeId ?? this.themeId,
brightness: brightness ?? this.brightness, brightness: brightness ?? this.brightness,
background: background ?? this.background, background: background ?? this.background,
backgroundAppBar: backgroundAppBar ?? this.backgroundAppBar, backgroundAppBar: backgroundAppBar ?? this.backgroundAppBar,
@ -899,7 +899,7 @@ class StackColors extends ThemeExtension<StackColors> {
} }
return StackColors( return StackColors(
themeType: other.themeType, themeId: other.themeId,
brightness: other.brightness, brightness: other.brightness,
gradientBackground: other.gradientBackground, gradientBackground: other.gradientBackground,
homeViewButtonBarBoxShadow: other.homeViewButtonBarBoxShadow, homeViewButtonBarBoxShadow: other.homeViewButtonBarBoxShadow,