mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 12:44:31 +00:00
fix coin card color
This commit is contained in:
parent
738cb55a40
commit
37cb83a2d4
7 changed files with 252 additions and 238 deletions
|
@ -13,11 +13,11 @@ import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:isar/isar.dart';
|
import 'package:isar/isar.dart';
|
||||||
import 'package:stackwallet/themes/color_theme.dart';
|
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/extensions/impl/box_shadow.dart';
|
import 'package:stackwallet/utilities/extensions/impl/box_shadow.dart';
|
||||||
import 'package:stackwallet/utilities/extensions/impl/gradient.dart';
|
import 'package:stackwallet/utilities/extensions/impl/gradient.dart';
|
||||||
import 'package:stackwallet/utilities/extensions/impl/string.dart';
|
import 'package:stackwallet/utilities/extensions/impl/string.dart';
|
||||||
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/stack_file_system.dart';
|
import 'package:stackwallet/utilities/stack_file_system.dart';
|
||||||
|
|
||||||
part 'stack_theme.g.dart';
|
part 'stack_theme.g.dart';
|
||||||
|
@ -45,7 +45,7 @@ class StackTheme {
|
||||||
case "dark":
|
case "dark":
|
||||||
return Brightness.dark;
|
return Brightness.dark;
|
||||||
default:
|
default:
|
||||||
// just return light instead of a possible crash causing error
|
// just return light instead of a possible crash causing error
|
||||||
return Brightness.light;
|
return Brightness.light;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -131,8 +131,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get accentColorBlue => _accentColorBlue ??= Color(
|
Color get accentColorBlue => _accentColorBlue ??= Color(
|
||||||
accentColorBlueInt,
|
accentColorBlueInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _accentColorBlue;
|
Color? _accentColorBlue;
|
||||||
late final int accentColorBlueInt;
|
late final int accentColorBlueInt;
|
||||||
|
@ -141,8 +141,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get accentColorGreen => _accentColorGreen ??= Color(
|
Color get accentColorGreen => _accentColorGreen ??= Color(
|
||||||
accentColorGreenInt,
|
accentColorGreenInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _accentColorGreen;
|
Color? _accentColorGreen;
|
||||||
late final int accentColorGreenInt;
|
late final int accentColorGreenInt;
|
||||||
|
@ -151,8 +151,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get accentColorYellow => _accentColorYellow ??= Color(
|
Color get accentColorYellow => _accentColorYellow ??= Color(
|
||||||
accentColorYellowInt,
|
accentColorYellowInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _accentColorYellow;
|
Color? _accentColorYellow;
|
||||||
late final int accentColorYellowInt;
|
late final int accentColorYellowInt;
|
||||||
|
@ -161,8 +161,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get accentColorRed => _accentColorRed ??= Color(
|
Color get accentColorRed => _accentColorRed ??= Color(
|
||||||
accentColorRedInt,
|
accentColorRedInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _accentColorRed;
|
Color? _accentColorRed;
|
||||||
late final int accentColorRedInt;
|
late final int accentColorRedInt;
|
||||||
|
@ -171,8 +171,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get accentColorOrange => _accentColorOrange ??= Color(
|
Color get accentColorOrange => _accentColorOrange ??= Color(
|
||||||
accentColorOrangeInt,
|
accentColorOrangeInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _accentColorOrange;
|
Color? _accentColorOrange;
|
||||||
late final int accentColorOrangeInt;
|
late final int accentColorOrangeInt;
|
||||||
|
@ -181,8 +181,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get accentColorDark => _accentColorDark ??= Color(
|
Color get accentColorDark => _accentColorDark ??= Color(
|
||||||
accentColorDarkInt,
|
accentColorDarkInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _accentColorDark;
|
Color? _accentColorDark;
|
||||||
late final int accentColorDarkInt;
|
late final int accentColorDarkInt;
|
||||||
|
@ -191,8 +191,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get shadow => _shadow ??= Color(
|
Color get shadow => _shadow ??= Color(
|
||||||
shadowInt,
|
shadowInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _shadow;
|
Color? _shadow;
|
||||||
late final int shadowInt;
|
late final int shadowInt;
|
||||||
|
@ -201,8 +201,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get textDark => _textDark ??= Color(
|
Color get textDark => _textDark ??= Color(
|
||||||
textDarkInt,
|
textDarkInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _textDark;
|
Color? _textDark;
|
||||||
late final int textDarkInt;
|
late final int textDarkInt;
|
||||||
|
@ -211,8 +211,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get textDark2 => _textDark2 ??= Color(
|
Color get textDark2 => _textDark2 ??= Color(
|
||||||
textDark2Int,
|
textDark2Int,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _textDark2;
|
Color? _textDark2;
|
||||||
late final int textDark2Int;
|
late final int textDark2Int;
|
||||||
|
@ -221,8 +221,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get textDark3 => _textDark3 ??= Color(
|
Color get textDark3 => _textDark3 ??= Color(
|
||||||
textDark3Int,
|
textDark3Int,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _textDark3;
|
Color? _textDark3;
|
||||||
late final int textDark3Int;
|
late final int textDark3Int;
|
||||||
|
@ -231,8 +231,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get textSubtitle1 => _textSubtitle1 ??= Color(
|
Color get textSubtitle1 => _textSubtitle1 ??= Color(
|
||||||
textSubtitle1Int,
|
textSubtitle1Int,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _textSubtitle1;
|
Color? _textSubtitle1;
|
||||||
late final int textSubtitle1Int;
|
late final int textSubtitle1Int;
|
||||||
|
@ -241,8 +241,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get textSubtitle2 => _textSubtitle2 ??= Color(
|
Color get textSubtitle2 => _textSubtitle2 ??= Color(
|
||||||
textSubtitle2Int,
|
textSubtitle2Int,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _textSubtitle2;
|
Color? _textSubtitle2;
|
||||||
late final int textSubtitle2Int;
|
late final int textSubtitle2Int;
|
||||||
|
@ -251,8 +251,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get textSubtitle3 => _textSubtitle3 ??= Color(
|
Color get textSubtitle3 => _textSubtitle3 ??= Color(
|
||||||
textSubtitle3Int,
|
textSubtitle3Int,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _textSubtitle3;
|
Color? _textSubtitle3;
|
||||||
late final int textSubtitle3Int;
|
late final int textSubtitle3Int;
|
||||||
|
@ -261,8 +261,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get textSubtitle4 => _textSubtitle4 ??= Color(
|
Color get textSubtitle4 => _textSubtitle4 ??= Color(
|
||||||
textSubtitle4Int,
|
textSubtitle4Int,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _textSubtitle4;
|
Color? _textSubtitle4;
|
||||||
late final int textSubtitle4Int;
|
late final int textSubtitle4Int;
|
||||||
|
@ -271,8 +271,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get textSubtitle5 => _textSubtitle5 ??= Color(
|
Color get textSubtitle5 => _textSubtitle5 ??= Color(
|
||||||
textSubtitle5Int,
|
textSubtitle5Int,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _textSubtitle5;
|
Color? _textSubtitle5;
|
||||||
late final int textSubtitle5Int;
|
late final int textSubtitle5Int;
|
||||||
|
@ -281,8 +281,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get textSubtitle6 => _textSubtitle6 ??= Color(
|
Color get textSubtitle6 => _textSubtitle6 ??= Color(
|
||||||
textSubtitle6Int,
|
textSubtitle6Int,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _textSubtitle6;
|
Color? _textSubtitle6;
|
||||||
late final int textSubtitle6Int;
|
late final int textSubtitle6Int;
|
||||||
|
@ -291,8 +291,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get textWhite => _textWhite ??= Color(
|
Color get textWhite => _textWhite ??= Color(
|
||||||
textWhiteInt,
|
textWhiteInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _textWhite;
|
Color? _textWhite;
|
||||||
late final int textWhiteInt;
|
late final int textWhiteInt;
|
||||||
|
@ -301,8 +301,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get textFavoriteCard => _textFavoriteCard ??= Color(
|
Color get textFavoriteCard => _textFavoriteCard ??= Color(
|
||||||
textFavoriteCardInt,
|
textFavoriteCardInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _textFavoriteCard;
|
Color? _textFavoriteCard;
|
||||||
late final int textFavoriteCardInt;
|
late final int textFavoriteCardInt;
|
||||||
|
@ -311,8 +311,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get textError => _textError ??= Color(
|
Color get textError => _textError ??= Color(
|
||||||
textErrorInt,
|
textErrorInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _textError;
|
Color? _textError;
|
||||||
late final int textErrorInt;
|
late final int textErrorInt;
|
||||||
|
@ -321,8 +321,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get textRestore => _textRestore ??= Color(
|
Color get textRestore => _textRestore ??= Color(
|
||||||
textRestoreInt,
|
textRestoreInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _textRestore;
|
Color? _textRestore;
|
||||||
late final int textRestoreInt;
|
late final int textRestoreInt;
|
||||||
|
@ -331,8 +331,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get buttonBackPrimary => _buttonBackPrimary ??= Color(
|
Color get buttonBackPrimary => _buttonBackPrimary ??= Color(
|
||||||
buttonBackPrimaryInt,
|
buttonBackPrimaryInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _buttonBackPrimary;
|
Color? _buttonBackPrimary;
|
||||||
late final int buttonBackPrimaryInt;
|
late final int buttonBackPrimaryInt;
|
||||||
|
@ -341,8 +341,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get buttonBackSecondary => _buttonBackSecondary ??= Color(
|
Color get buttonBackSecondary => _buttonBackSecondary ??= Color(
|
||||||
buttonBackSecondaryInt,
|
buttonBackSecondaryInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _buttonBackSecondary;
|
Color? _buttonBackSecondary;
|
||||||
late final int buttonBackSecondaryInt;
|
late final int buttonBackSecondaryInt;
|
||||||
|
@ -351,8 +351,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get buttonBackPrimaryDisabled => _buttonBackPrimaryDisabled ??= Color(
|
Color get buttonBackPrimaryDisabled => _buttonBackPrimaryDisabled ??= Color(
|
||||||
buttonBackPrimaryDisabledInt,
|
buttonBackPrimaryDisabledInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _buttonBackPrimaryDisabled;
|
Color? _buttonBackPrimaryDisabled;
|
||||||
late final int buttonBackPrimaryDisabledInt;
|
late final int buttonBackPrimaryDisabledInt;
|
||||||
|
@ -372,8 +372,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get buttonBackBorder => _buttonBackBorder ??= Color(
|
Color get buttonBackBorder => _buttonBackBorder ??= Color(
|
||||||
buttonBackBorderInt,
|
buttonBackBorderInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _buttonBackBorder;
|
Color? _buttonBackBorder;
|
||||||
late final int buttonBackBorderInt;
|
late final int buttonBackBorderInt;
|
||||||
|
@ -382,8 +382,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get buttonBackBorderDisabled => _buttonBackBorderDisabled ??= Color(
|
Color get buttonBackBorderDisabled => _buttonBackBorderDisabled ??= Color(
|
||||||
buttonBackBorderDisabledInt,
|
buttonBackBorderDisabledInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _buttonBackBorderDisabled;
|
Color? _buttonBackBorderDisabled;
|
||||||
late final int buttonBackBorderDisabledInt;
|
late final int buttonBackBorderDisabledInt;
|
||||||
|
@ -392,8 +392,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get buttonBackBorderSecondary => _buttonBackBorderSecondary ??= Color(
|
Color get buttonBackBorderSecondary => _buttonBackBorderSecondary ??= Color(
|
||||||
buttonBackBorderSecondaryInt,
|
buttonBackBorderSecondaryInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _buttonBackBorderSecondary;
|
Color? _buttonBackBorderSecondary;
|
||||||
late final int buttonBackBorderSecondaryInt;
|
late final int buttonBackBorderSecondaryInt;
|
||||||
|
@ -413,8 +413,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get numberBackDefault => _numberBackDefault ??= Color(
|
Color get numberBackDefault => _numberBackDefault ??= Color(
|
||||||
numberBackDefaultInt,
|
numberBackDefaultInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _numberBackDefault;
|
Color? _numberBackDefault;
|
||||||
late final int numberBackDefaultInt;
|
late final int numberBackDefaultInt;
|
||||||
|
@ -423,8 +423,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get numpadBackDefault => _numpadBackDefault ??= Color(
|
Color get numpadBackDefault => _numpadBackDefault ??= Color(
|
||||||
numpadBackDefaultInt,
|
numpadBackDefaultInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _numpadBackDefault;
|
Color? _numpadBackDefault;
|
||||||
late final int numpadBackDefaultInt;
|
late final int numpadBackDefaultInt;
|
||||||
|
@ -433,8 +433,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get bottomNavBack => _bottomNavBack ??= Color(
|
Color get bottomNavBack => _bottomNavBack ??= Color(
|
||||||
bottomNavBackInt,
|
bottomNavBackInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _bottomNavBack;
|
Color? _bottomNavBack;
|
||||||
late final int bottomNavBackInt;
|
late final int bottomNavBackInt;
|
||||||
|
@ -443,8 +443,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get buttonTextPrimary => _buttonTextPrimary ??= Color(
|
Color get buttonTextPrimary => _buttonTextPrimary ??= Color(
|
||||||
buttonTextPrimaryInt,
|
buttonTextPrimaryInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _buttonTextPrimary;
|
Color? _buttonTextPrimary;
|
||||||
late final int buttonTextPrimaryInt;
|
late final int buttonTextPrimaryInt;
|
||||||
|
@ -453,8 +453,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get buttonTextSecondary => _buttonTextSecondary ??= Color(
|
Color get buttonTextSecondary => _buttonTextSecondary ??= Color(
|
||||||
buttonTextSecondaryInt,
|
buttonTextSecondaryInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _buttonTextSecondary;
|
Color? _buttonTextSecondary;
|
||||||
late final int buttonTextSecondaryInt;
|
late final int buttonTextSecondaryInt;
|
||||||
|
@ -463,8 +463,8 @@ class StackTheme {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Color get buttonTextPrimaryDisabled => _buttonTextPrimaryDisabled ??= Color(
|
Color get buttonTextPrimaryDisabled => _buttonTextPrimaryDisabled ??= Color(
|
||||||
buttonTextPrimaryDisabledInt,
|
buttonTextPrimaryDisabledInt,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Color? _buttonTextPrimaryDisabled;
|
Color? _buttonTextPrimaryDisabled;
|
||||||
late final int buttonTextPrimaryDisabledInt;
|
late final int buttonTextPrimaryDisabledInt;
|
||||||
|
@ -1517,117 +1517,117 @@ class StackTheme {
|
||||||
..version = version
|
..version = version
|
||||||
..assetsV1 = version == 1
|
..assetsV1 = version == 1
|
||||||
? ThemeAssets.fromJson(
|
? ThemeAssets.fromJson(
|
||||||
json: Map<String, dynamic>.from(json["assets"] as Map),
|
json: Map<String, dynamic>.from(json["assets"] as Map),
|
||||||
themeId: json["id"] as String,
|
themeId: json["id"] as String,
|
||||||
)
|
)
|
||||||
: null
|
: null
|
||||||
..assetsV2 = version == 2
|
..assetsV2 = version == 2
|
||||||
? ThemeAssetsV2.fromJson(
|
? ThemeAssetsV2.fromJson(
|
||||||
json: Map<String, dynamic>.from(json["assets"] as Map),
|
json: Map<String, dynamic>.from(json["assets"] as Map),
|
||||||
themeId: json["id"] as String,
|
themeId: json["id"] as String,
|
||||||
)
|
)
|
||||||
: null
|
: null
|
||||||
..assetsV3 = version >= 3
|
..assetsV3 = version >= 3
|
||||||
? ThemeAssetsV3.fromJson(
|
? ThemeAssetsV3.fromJson(
|
||||||
json: Map<String, dynamic>.from(json["assets"] as Map),
|
json: Map<String, dynamic>.from(json["assets"] as Map),
|
||||||
themeId: json["id"] as String,
|
themeId: json["id"] as String,
|
||||||
)
|
)
|
||||||
: null
|
: null
|
||||||
..themeId = json["id"] as String
|
..themeId = json["id"] as String
|
||||||
..name = json["name"] as String
|
..name = json["name"] as String
|
||||||
..brightnessString = json["brightness"] as String
|
..brightnessString = json["brightness"] as String
|
||||||
..backgroundInt = parseColor(json["colors"]["background"] as String)
|
..backgroundInt = parseColor(json["colors"]["background"] as String)
|
||||||
..backgroundAppBarInt =
|
..backgroundAppBarInt =
|
||||||
parseColor(json["colors"]["background_app_bar"] as String)
|
parseColor(json["colors"]["background_app_bar"] as String)
|
||||||
..gradientBackgroundString = json["colors"]["gradients"] != null
|
..gradientBackgroundString = json["colors"]["gradients"] != null
|
||||||
? jsonEncode(json["colors"]["gradients"])
|
? jsonEncode(json["colors"]["gradients"])
|
||||||
: null
|
: null
|
||||||
..standardBoxShadowString =
|
..standardBoxShadowString =
|
||||||
jsonEncode(json["colors"]["box_shadows"]["standard"] as Map)
|
jsonEncode(json["colors"]["box_shadows"]["standard"] as Map)
|
||||||
..homeViewButtonBarBoxShadowString =
|
..homeViewButtonBarBoxShadowString =
|
||||||
json["colors"]["box_shadows"]["home_view_button_bar"] == null
|
json["colors"]["box_shadows"]["home_view_button_bar"] == null
|
||||||
? null
|
? null
|
||||||
: jsonEncode(
|
: jsonEncode(
|
||||||
json["colors"]["box_shadows"]["home_view_button_bar"] as Map)
|
json["colors"]["box_shadows"]["home_view_button_bar"] as Map)
|
||||||
..coinColorsJsonString = jsonEncode(json["colors"]['coin'] as Map)
|
..coinColorsJsonString = jsonEncode(json["colors"]['coin'] as Map)
|
||||||
..overlayInt = parseColor(json["colors"]["overlay"] as String)
|
..overlayInt = parseColor(json["colors"]["overlay"] as String)
|
||||||
..accentColorBlueInt =
|
..accentColorBlueInt =
|
||||||
parseColor(json["colors"]["accent_color_blue"] as String)
|
parseColor(json["colors"]["accent_color_blue"] as String)
|
||||||
..accentColorGreenInt =
|
..accentColorGreenInt =
|
||||||
parseColor(json["colors"]["accent_color_green"] as String)
|
parseColor(json["colors"]["accent_color_green"] as String)
|
||||||
..accentColorYellowInt =
|
..accentColorYellowInt =
|
||||||
parseColor(json["colors"]["accent_color_yellow"] as String)
|
parseColor(json["colors"]["accent_color_yellow"] as String)
|
||||||
..accentColorRedInt =
|
..accentColorRedInt =
|
||||||
parseColor(json["colors"]["accent_color_red"] as String)
|
parseColor(json["colors"]["accent_color_red"] as String)
|
||||||
..accentColorOrangeInt =
|
..accentColorOrangeInt =
|
||||||
parseColor(json["colors"]["accent_color_orange"] as String)
|
parseColor(json["colors"]["accent_color_orange"] as String)
|
||||||
..accentColorDarkInt =
|
..accentColorDarkInt =
|
||||||
parseColor(json["colors"]["accent_color_dark"] as String)
|
parseColor(json["colors"]["accent_color_dark"] as String)
|
||||||
..shadowInt = parseColor(json["colors"]["shadow"] as String)
|
..shadowInt = parseColor(json["colors"]["shadow"] as String)
|
||||||
..textDarkInt = parseColor(json["colors"]["text_dark_one"] as String)
|
..textDarkInt = parseColor(json["colors"]["text_dark_one"] as String)
|
||||||
..textDark2Int = parseColor(json["colors"]["text_dark_two"] as String)
|
..textDark2Int = parseColor(json["colors"]["text_dark_two"] as String)
|
||||||
..textDark3Int = parseColor(json["colors"]["text_dark_three"] as String)
|
..textDark3Int = parseColor(json["colors"]["text_dark_three"] as String)
|
||||||
..textWhiteInt = parseColor(json["colors"]["text_white"] as String)
|
..textWhiteInt = parseColor(json["colors"]["text_white"] as String)
|
||||||
..textFavoriteCardInt =
|
..textFavoriteCardInt =
|
||||||
parseColor(json["colors"]["text_favorite"] as String)
|
parseColor(json["colors"]["text_favorite"] as String)
|
||||||
..textErrorInt = parseColor(json["colors"]["text_error"] as String)
|
..textErrorInt = parseColor(json["colors"]["text_error"] as String)
|
||||||
..textRestoreInt = parseColor(json["colors"]["text_restore"] as String)
|
..textRestoreInt = parseColor(json["colors"]["text_restore"] as String)
|
||||||
..buttonBackPrimaryInt =
|
..buttonBackPrimaryInt =
|
||||||
parseColor(json["colors"]["button_back_primary"] as String)
|
parseColor(json["colors"]["button_back_primary"] as String)
|
||||||
..buttonBackSecondaryInt =
|
..buttonBackSecondaryInt =
|
||||||
parseColor(json["colors"]["button_back_secondary"] as String)
|
parseColor(json["colors"]["button_back_secondary"] as String)
|
||||||
..buttonBackPrimaryDisabledInt =
|
..buttonBackPrimaryDisabledInt =
|
||||||
parseColor(json["colors"]["button_back_primary_disabled"] as String)
|
parseColor(json["colors"]["button_back_primary_disabled"] as String)
|
||||||
..buttonBackSecondaryDisabledInt =
|
..buttonBackSecondaryDisabledInt =
|
||||||
parseColor(json["colors"]["button_back_secondary_disabled"] as String)
|
parseColor(json["colors"]["button_back_secondary_disabled"] as String)
|
||||||
..buttonBackBorderInt =
|
..buttonBackBorderInt =
|
||||||
parseColor(json["colors"]["button_back_border"] as String)
|
parseColor(json["colors"]["button_back_border"] as String)
|
||||||
..buttonBackBorderDisabledInt =
|
..buttonBackBorderDisabledInt =
|
||||||
parseColor(json["colors"]["button_back_border_disabled"] as String)
|
parseColor(json["colors"]["button_back_border_disabled"] as String)
|
||||||
..buttonBackBorderSecondaryInt =
|
..buttonBackBorderSecondaryInt =
|
||||||
parseColor(json["colors"]["button_back_border_secondary"] as String)
|
parseColor(json["colors"]["button_back_border_secondary"] as String)
|
||||||
..buttonBackBorderSecondaryDisabledInt = parseColor(
|
..buttonBackBorderSecondaryDisabledInt = parseColor(
|
||||||
json["colors"]["button_back_border_secondary_disabled"] as String)
|
json["colors"]["button_back_border_secondary_disabled"] as String)
|
||||||
..numberBackDefaultInt =
|
..numberBackDefaultInt =
|
||||||
parseColor(json["colors"]["number_back_default"] as String)
|
parseColor(json["colors"]["number_back_default"] as String)
|
||||||
..numpadBackDefaultInt =
|
..numpadBackDefaultInt =
|
||||||
parseColor(json["colors"]["numpad_back_default"] as String)
|
parseColor(json["colors"]["numpad_back_default"] as String)
|
||||||
..bottomNavBackInt =
|
..bottomNavBackInt =
|
||||||
parseColor(json["colors"]["bottom_nav_back"] as String)
|
parseColor(json["colors"]["bottom_nav_back"] as String)
|
||||||
..textSubtitle1Int =
|
..textSubtitle1Int =
|
||||||
parseColor(json["colors"]["text_subtitle_one"] as String)
|
parseColor(json["colors"]["text_subtitle_one"] as String)
|
||||||
..textSubtitle2Int =
|
..textSubtitle2Int =
|
||||||
parseColor(json["colors"]["text_subtitle_two"] as String)
|
parseColor(json["colors"]["text_subtitle_two"] as String)
|
||||||
..textSubtitle3Int =
|
..textSubtitle3Int =
|
||||||
parseColor(json["colors"]["text_subtitle_three"] as String)
|
parseColor(json["colors"]["text_subtitle_three"] as String)
|
||||||
..textSubtitle4Int =
|
..textSubtitle4Int =
|
||||||
parseColor(json["colors"]["text_subtitle_four"] as String)
|
parseColor(json["colors"]["text_subtitle_four"] as String)
|
||||||
..textSubtitle5Int =
|
..textSubtitle5Int =
|
||||||
parseColor(json["colors"]["text_subtitle_five"] as String)
|
parseColor(json["colors"]["text_subtitle_five"] as String)
|
||||||
..textSubtitle6Int =
|
..textSubtitle6Int =
|
||||||
parseColor(json["colors"]["text_subtitle_six"] as String)
|
parseColor(json["colors"]["text_subtitle_six"] as String)
|
||||||
..buttonTextPrimaryInt =
|
..buttonTextPrimaryInt =
|
||||||
parseColor(json["colors"]["button_text_primary"] as String)
|
parseColor(json["colors"]["button_text_primary"] as String)
|
||||||
..buttonTextSecondaryInt =
|
..buttonTextSecondaryInt =
|
||||||
parseColor(json["colors"]["button_text_secondary"] as String)
|
parseColor(json["colors"]["button_text_secondary"] as String)
|
||||||
..buttonTextPrimaryDisabledInt =
|
..buttonTextPrimaryDisabledInt =
|
||||||
parseColor(json["colors"]["button_text_primary_disabled"] as String)
|
parseColor(json["colors"]["button_text_primary_disabled"] as String)
|
||||||
..buttonTextSecondaryDisabledInt =
|
..buttonTextSecondaryDisabledInt =
|
||||||
parseColor(json["colors"]["button_text_secondary_disabled"] as String)
|
parseColor(json["colors"]["button_text_secondary_disabled"] as String)
|
||||||
..buttonTextBorderInt =
|
..buttonTextBorderInt =
|
||||||
parseColor(json["colors"]["button_text_border"] as String)
|
parseColor(json["colors"]["button_text_border"] as String)
|
||||||
..buttonTextDisabledInt =
|
..buttonTextDisabledInt =
|
||||||
parseColor(json["colors"]["button_text_disabled"] as String)
|
parseColor(json["colors"]["button_text_disabled"] as String)
|
||||||
..buttonTextBorderlessInt =
|
..buttonTextBorderlessInt =
|
||||||
parseColor(json["colors"]["button_text_borderless"] as String)
|
parseColor(json["colors"]["button_text_borderless"] as String)
|
||||||
..buttonTextBorderlessDisabledInt = parseColor(
|
..buttonTextBorderlessDisabledInt = parseColor(
|
||||||
json["colors"]["button_text_borderless_disabled"] as String)
|
json["colors"]["button_text_borderless_disabled"] as String)
|
||||||
..numberTextDefaultInt =
|
..numberTextDefaultInt =
|
||||||
parseColor(json["colors"]["number_text_default"] as String)
|
parseColor(json["colors"]["number_text_default"] as String)
|
||||||
..numpadTextDefaultInt =
|
..numpadTextDefaultInt =
|
||||||
parseColor(json["colors"]["numpad_text_default"] as String)
|
parseColor(json["colors"]["numpad_text_default"] as String)
|
||||||
..bottomNavTextInt =
|
..bottomNavTextInt =
|
||||||
parseColor(json["colors"]["bottom_nav_text"] as String)
|
parseColor(json["colors"]["bottom_nav_text"] as String)
|
||||||
..customTextButtonEnabledTextInt = parseColor(
|
..customTextButtonEnabledTextInt = parseColor(
|
||||||
json["colors"]["custom_text_button_enabled_text"] as String)
|
json["colors"]["custom_text_button_enabled_text"] as String)
|
||||||
..customTextButtonDisabledTextInt = parseColor(
|
..customTextButtonDisabledTextInt = parseColor(
|
||||||
|
@ -1635,87 +1635,87 @@ class StackTheme {
|
||||||
..switchBGOnInt = parseColor(json["colors"]["switch_bg_on"] as String)
|
..switchBGOnInt = parseColor(json["colors"]["switch_bg_on"] as String)
|
||||||
..switchBGOffInt = parseColor(json["colors"]["switch_bg_off"] as String)
|
..switchBGOffInt = parseColor(json["colors"]["switch_bg_off"] as String)
|
||||||
..switchBGDisabledInt =
|
..switchBGDisabledInt =
|
||||||
parseColor(json["colors"]["switch_bg_disabled"] as String)
|
parseColor(json["colors"]["switch_bg_disabled"] as String)
|
||||||
..switchCircleOnInt =
|
..switchCircleOnInt =
|
||||||
parseColor(json["colors"]["switch_circle_on"] as String)
|
parseColor(json["colors"]["switch_circle_on"] as String)
|
||||||
..switchCircleOffInt =
|
..switchCircleOffInt =
|
||||||
parseColor(json["colors"]["switch_circle_off"] as String)
|
parseColor(json["colors"]["switch_circle_off"] as String)
|
||||||
..switchCircleDisabledInt =
|
..switchCircleDisabledInt =
|
||||||
parseColor(json["colors"]["switch_circle_disabled"] as String)
|
parseColor(json["colors"]["switch_circle_disabled"] as String)
|
||||||
..stepIndicatorBGCheckInt =
|
..stepIndicatorBGCheckInt =
|
||||||
parseColor(json["colors"]["step_indicator_bg_check"] as String)
|
parseColor(json["colors"]["step_indicator_bg_check"] as String)
|
||||||
..stepIndicatorBGNumberInt =
|
..stepIndicatorBGNumberInt =
|
||||||
parseColor(json["colors"]["step_indicator_bg_number"] as String)
|
parseColor(json["colors"]["step_indicator_bg_number"] as String)
|
||||||
..stepIndicatorBGInactiveInt =
|
..stepIndicatorBGInactiveInt =
|
||||||
parseColor(json["colors"]["step_indicator_bg_inactive"] as String)
|
parseColor(json["colors"]["step_indicator_bg_inactive"] as String)
|
||||||
..stepIndicatorBGLinesInt =
|
..stepIndicatorBGLinesInt =
|
||||||
parseColor(json["colors"]["step_indicator_bg_lines"] as String)
|
parseColor(json["colors"]["step_indicator_bg_lines"] as String)
|
||||||
..stepIndicatorBGLinesInactiveInt = parseColor(
|
..stepIndicatorBGLinesInactiveInt = parseColor(
|
||||||
json["colors"]["step_indicator_bg_lines_inactive"] as String)
|
json["colors"]["step_indicator_bg_lines_inactive"] as String)
|
||||||
..stepIndicatorIconTextInt =
|
..stepIndicatorIconTextInt =
|
||||||
parseColor(json["colors"]["step_indicator_icon_text"] as String)
|
parseColor(json["colors"]["step_indicator_icon_text"] as String)
|
||||||
..stepIndicatorIconNumberInt =
|
..stepIndicatorIconNumberInt =
|
||||||
parseColor(json["colors"]["step_indicator_icon_number"] as String)
|
parseColor(json["colors"]["step_indicator_icon_number"] as String)
|
||||||
..stepIndicatorIconInactiveInt =
|
..stepIndicatorIconInactiveInt =
|
||||||
parseColor(json["colors"]["step_indicator_icon_inactive"] as String)
|
parseColor(json["colors"]["step_indicator_icon_inactive"] as String)
|
||||||
..checkboxBGCheckedInt =
|
..checkboxBGCheckedInt =
|
||||||
parseColor(json["colors"]["checkbox_bg_checked"] as String)
|
parseColor(json["colors"]["checkbox_bg_checked"] as String)
|
||||||
..checkboxBorderEmptyInt =
|
..checkboxBorderEmptyInt =
|
||||||
parseColor(json["colors"]["checkbox_border_empty"] as String)
|
parseColor(json["colors"]["checkbox_border_empty"] as String)
|
||||||
..checkboxBGDisabledInt =
|
..checkboxBGDisabledInt =
|
||||||
parseColor(json["colors"]["checkbox_bg_disabled"] as String)
|
parseColor(json["colors"]["checkbox_bg_disabled"] as String)
|
||||||
..checkboxIconCheckedInt =
|
..checkboxIconCheckedInt =
|
||||||
parseColor(json["colors"]["checkbox_icon_checked"] as String)
|
parseColor(json["colors"]["checkbox_icon_checked"] as String)
|
||||||
..checkboxIconDisabledInt =
|
..checkboxIconDisabledInt =
|
||||||
parseColor(json["colors"]["checkbox_icon_disabled"] as String)
|
parseColor(json["colors"]["checkbox_icon_disabled"] as String)
|
||||||
..checkboxTextLabelInt =
|
..checkboxTextLabelInt =
|
||||||
parseColor(json["colors"]["checkbox_text_label"] as String)
|
parseColor(json["colors"]["checkbox_text_label"] as String)
|
||||||
..snackBarBackSuccessInt =
|
..snackBarBackSuccessInt =
|
||||||
parseColor(json["colors"]["snack_bar_back_success"] as String)
|
parseColor(json["colors"]["snack_bar_back_success"] as String)
|
||||||
..snackBarBackErrorInt =
|
..snackBarBackErrorInt =
|
||||||
parseColor(json["colors"]["snack_bar_back_error"] as String)
|
parseColor(json["colors"]["snack_bar_back_error"] as String)
|
||||||
..snackBarBackInfoInt =
|
..snackBarBackInfoInt =
|
||||||
parseColor(json["colors"]["snack_bar_back_info"] as String)
|
parseColor(json["colors"]["snack_bar_back_info"] as String)
|
||||||
..snackBarTextSuccessInt =
|
..snackBarTextSuccessInt =
|
||||||
parseColor(json["colors"]["snack_bar_text_success"] as String)
|
parseColor(json["colors"]["snack_bar_text_success"] as String)
|
||||||
..snackBarTextErrorInt =
|
..snackBarTextErrorInt =
|
||||||
parseColor(json["colors"]["snack_bar_text_error"] as String)
|
parseColor(json["colors"]["snack_bar_text_error"] as String)
|
||||||
..snackBarTextInfoInt =
|
..snackBarTextInfoInt =
|
||||||
parseColor(json["colors"]["snack_bar_text_info"] as String)
|
parseColor(json["colors"]["snack_bar_text_info"] as String)
|
||||||
..bottomNavIconBackInt =
|
..bottomNavIconBackInt =
|
||||||
parseColor(json["colors"]["bottom_nav_icon_back"] as String)
|
parseColor(json["colors"]["bottom_nav_icon_back"] as String)
|
||||||
..bottomNavIconIconInt =
|
..bottomNavIconIconInt =
|
||||||
parseColor(json["colors"]["bottom_nav_icon_icon"] as String)
|
parseColor(json["colors"]["bottom_nav_icon_icon"] as String)
|
||||||
..bottomNavIconIconHighlightedInt = parseColor(
|
..bottomNavIconIconHighlightedInt = parseColor(
|
||||||
json["colors"]["bottom_nav_icon_icon_highlighted"] as String)
|
json["colors"]["bottom_nav_icon_icon_highlighted"] as String)
|
||||||
..topNavIconPrimaryInt =
|
..topNavIconPrimaryInt =
|
||||||
parseColor(json["colors"]["top_nav_icon_primary"] as String)
|
parseColor(json["colors"]["top_nav_icon_primary"] as String)
|
||||||
..topNavIconGreenInt =
|
..topNavIconGreenInt =
|
||||||
parseColor(json["colors"]["top_nav_icon_green"] as String)
|
parseColor(json["colors"]["top_nav_icon_green"] as String)
|
||||||
..topNavIconYellowInt =
|
..topNavIconYellowInt =
|
||||||
parseColor(json["colors"]["top_nav_icon_yellow"] as String)
|
parseColor(json["colors"]["top_nav_icon_yellow"] as String)
|
||||||
..topNavIconRedInt =
|
..topNavIconRedInt =
|
||||||
parseColor(json["colors"]["top_nav_icon_red"] as String)
|
parseColor(json["colors"]["top_nav_icon_red"] as String)
|
||||||
..settingsIconBackInt =
|
..settingsIconBackInt =
|
||||||
parseColor(json["colors"]["settings_icon_back"] as String)
|
parseColor(json["colors"]["settings_icon_back"] as String)
|
||||||
..settingsIconIconInt =
|
..settingsIconIconInt =
|
||||||
parseColor(json["colors"]["settings_icon_icon"] as String)
|
parseColor(json["colors"]["settings_icon_icon"] as String)
|
||||||
..settingsIconBack2Int =
|
..settingsIconBack2Int =
|
||||||
parseColor(json["colors"]["settings_icon_back_two"] as String)
|
parseColor(json["colors"]["settings_icon_back_two"] as String)
|
||||||
..settingsIconElementInt =
|
..settingsIconElementInt =
|
||||||
parseColor(json["colors"]["settings_icon_element"] as String)
|
parseColor(json["colors"]["settings_icon_element"] as String)
|
||||||
..textFieldActiveBGInt =
|
..textFieldActiveBGInt =
|
||||||
parseColor(json["colors"]["text_field_active_bg"] as String)
|
parseColor(json["colors"]["text_field_active_bg"] as String)
|
||||||
..textFieldDefaultBGInt =
|
..textFieldDefaultBGInt =
|
||||||
parseColor(json["colors"]["text_field_default_bg"] as String)
|
parseColor(json["colors"]["text_field_default_bg"] as String)
|
||||||
..textFieldErrorBGInt =
|
..textFieldErrorBGInt =
|
||||||
parseColor(json["colors"]["text_field_error_bg"] as String)
|
parseColor(json["colors"]["text_field_error_bg"] as String)
|
||||||
..textFieldSuccessBGInt =
|
..textFieldSuccessBGInt =
|
||||||
parseColor(json["colors"]["text_field_success_bg"] as String)
|
parseColor(json["colors"]["text_field_success_bg"] as String)
|
||||||
..textFieldErrorBorderInt =
|
..textFieldErrorBorderInt =
|
||||||
parseColor(json["colors"]["text_field_error_border"] as String)
|
parseColor(json["colors"]["text_field_error_border"] as String)
|
||||||
..textFieldSuccessBorderInt =
|
..textFieldSuccessBorderInt =
|
||||||
parseColor(json["colors"]["text_field_success_border"] as String)
|
parseColor(json["colors"]["text_field_success_border"] as String)
|
||||||
..textFieldActiveSearchIconLeftInt = parseColor(
|
..textFieldActiveSearchIconLeftInt = parseColor(
|
||||||
json["colors"]["text_field_active_search_icon_left"] as String)
|
json["colors"]["text_field_active_search_icon_left"] as String)
|
||||||
..textFieldDefaultSearchIconLeftInt = parseColor(
|
..textFieldDefaultSearchIconLeftInt = parseColor(
|
||||||
|
@ -1725,19 +1725,19 @@ class StackTheme {
|
||||||
..textFieldSuccessSearchIconLeftInt = parseColor(
|
..textFieldSuccessSearchIconLeftInt = parseColor(
|
||||||
json["colors"]["text_field_success_search_icon_left"] as String)
|
json["colors"]["text_field_success_search_icon_left"] as String)
|
||||||
..textFieldActiveTextInt =
|
..textFieldActiveTextInt =
|
||||||
parseColor(json["colors"]["text_field_active_text"] as String)
|
parseColor(json["colors"]["text_field_active_text"] as String)
|
||||||
..textFieldDefaultTextInt =
|
..textFieldDefaultTextInt =
|
||||||
parseColor(json["colors"]["text_field_default_text"] as String)
|
parseColor(json["colors"]["text_field_default_text"] as String)
|
||||||
..textFieldErrorTextInt =
|
..textFieldErrorTextInt =
|
||||||
parseColor(json["colors"]["text_field_error_text"] as String)
|
parseColor(json["colors"]["text_field_error_text"] as String)
|
||||||
..textFieldSuccessTextInt =
|
..textFieldSuccessTextInt =
|
||||||
parseColor(json["colors"]["text_field_success_text"] as String)
|
parseColor(json["colors"]["text_field_success_text"] as String)
|
||||||
..textFieldActiveLabelInt =
|
..textFieldActiveLabelInt =
|
||||||
parseColor(json["colors"]["text_field_active_label"] as String)
|
parseColor(json["colors"]["text_field_active_label"] as String)
|
||||||
..textFieldErrorLabelInt =
|
..textFieldErrorLabelInt =
|
||||||
parseColor(json["colors"]["text_field_error_label"] as String)
|
parseColor(json["colors"]["text_field_error_label"] as String)
|
||||||
..textFieldSuccessLabelInt =
|
..textFieldSuccessLabelInt =
|
||||||
parseColor(json["colors"]["text_field_success_label"] as String)
|
parseColor(json["colors"]["text_field_success_label"] as String)
|
||||||
..textFieldActiveSearchIconRightInt = parseColor(
|
..textFieldActiveSearchIconRightInt = parseColor(
|
||||||
json["colors"]["text_field_active_search_icon_right"] as String)
|
json["colors"]["text_field_active_search_icon_right"] as String)
|
||||||
..textFieldDefaultSearchIconRightInt = parseColor(
|
..textFieldDefaultSearchIconRightInt = parseColor(
|
||||||
|
@ -1753,61 +1753,61 @@ class StackTheme {
|
||||||
..settingsItem2ActiveSubInt = parseColor(
|
..settingsItem2ActiveSubInt = parseColor(
|
||||||
json["colors"]["settings_item_level_two_active_sub"] as String)
|
json["colors"]["settings_item_level_two_active_sub"] as String)
|
||||||
..radioButtonIconBorderInt =
|
..radioButtonIconBorderInt =
|
||||||
parseColor(json["colors"]["radio_button_icon_border"] as String)
|
parseColor(json["colors"]["radio_button_icon_border"] as String)
|
||||||
..radioButtonIconBorderDisabledInt = parseColor(
|
..radioButtonIconBorderDisabledInt = parseColor(
|
||||||
json["colors"]["radio_button_icon_border_disabled"] as String)
|
json["colors"]["radio_button_icon_border_disabled"] as String)
|
||||||
..radioButtonBorderEnabledInt =
|
..radioButtonBorderEnabledInt =
|
||||||
parseColor(json["colors"]["radio_button_border_enabled"] as String)
|
parseColor(json["colors"]["radio_button_border_enabled"] as String)
|
||||||
..radioButtonBorderDisabledInt =
|
..radioButtonBorderDisabledInt =
|
||||||
parseColor(json["colors"]["radio_button_border_disabled"] as String)
|
parseColor(json["colors"]["radio_button_border_disabled"] as String)
|
||||||
..radioButtonIconCircleInt =
|
..radioButtonIconCircleInt =
|
||||||
parseColor(json["colors"]["radio_button_icon_circle"] as String)
|
parseColor(json["colors"]["radio_button_icon_circle"] as String)
|
||||||
..radioButtonIconEnabledInt =
|
..radioButtonIconEnabledInt =
|
||||||
parseColor(json["colors"]["radio_button_icon_enabled"] as String)
|
parseColor(json["colors"]["radio_button_icon_enabled"] as String)
|
||||||
..radioButtonTextEnabledInt =
|
..radioButtonTextEnabledInt =
|
||||||
parseColor(json["colors"]["radio_button_text_enabled"] as String)
|
parseColor(json["colors"]["radio_button_text_enabled"] as String)
|
||||||
..radioButtonTextDisabledInt =
|
..radioButtonTextDisabledInt =
|
||||||
parseColor(json["colors"]["radio_button_text_disabled"] as String)
|
parseColor(json["colors"]["radio_button_text_disabled"] as String)
|
||||||
..radioButtonLabelEnabledInt =
|
..radioButtonLabelEnabledInt =
|
||||||
parseColor(json["colors"]["radio_button_label_enabled"] as String)
|
parseColor(json["colors"]["radio_button_label_enabled"] as String)
|
||||||
..radioButtonLabelDisabledInt =
|
..radioButtonLabelDisabledInt =
|
||||||
parseColor(json["colors"]["radio_button_label_disabled"] as String)
|
parseColor(json["colors"]["radio_button_label_disabled"] as String)
|
||||||
..infoItemBGInt = parseColor(json["colors"]["info_item_bg"] as String)
|
..infoItemBGInt = parseColor(json["colors"]["info_item_bg"] as String)
|
||||||
..infoItemLabelInt =
|
..infoItemLabelInt =
|
||||||
parseColor(json["colors"]["info_item_label"] as String)
|
parseColor(json["colors"]["info_item_label"] as String)
|
||||||
..infoItemTextInt = parseColor(json["colors"]["info_item_text"] as String)
|
..infoItemTextInt = parseColor(json["colors"]["info_item_text"] as String)
|
||||||
..infoItemIconsInt =
|
..infoItemIconsInt =
|
||||||
parseColor(json["colors"]["info_item_icons"] as String)
|
parseColor(json["colors"]["info_item_icons"] as String)
|
||||||
..popupBGInt = parseColor(json["colors"]["popup_bg"] as String)
|
..popupBGInt = parseColor(json["colors"]["popup_bg"] as String)
|
||||||
..currencyListItemBGInt =
|
..currencyListItemBGInt =
|
||||||
parseColor(json["colors"]["currency_list_item_bg"] as String)
|
parseColor(json["colors"]["currency_list_item_bg"] as String)
|
||||||
..stackWalletBGInt = parseColor(json["colors"]["sw_bg"] as String)
|
..stackWalletBGInt = parseColor(json["colors"]["sw_bg"] as String)
|
||||||
..stackWalletMidInt = parseColor(json["colors"]["sw_mid"] as String)
|
..stackWalletMidInt = parseColor(json["colors"]["sw_mid"] as String)
|
||||||
..stackWalletBottomInt = parseColor(json["colors"]["sw_bottom"] as String)
|
..stackWalletBottomInt = parseColor(json["colors"]["sw_bottom"] as String)
|
||||||
..bottomNavShadowInt =
|
..bottomNavShadowInt =
|
||||||
parseColor(json["colors"]["bottom_nav_shadow"] as String)
|
parseColor(json["colors"]["bottom_nav_shadow"] as String)
|
||||||
..splashInt = parseColor(json["colors"]["splash"] as String)
|
..splashInt = parseColor(json["colors"]["splash"] as String)
|
||||||
..highlightInt = parseColor(json["colors"]["highlight"] as String)
|
..highlightInt = parseColor(json["colors"]["highlight"] as String)
|
||||||
..warningForegroundInt =
|
..warningForegroundInt =
|
||||||
parseColor(json["colors"]["warning_foreground"] as String)
|
parseColor(json["colors"]["warning_foreground"] as String)
|
||||||
..warningBackgroundInt =
|
..warningBackgroundInt =
|
||||||
parseColor(json["colors"]["warning_background"] as String)
|
parseColor(json["colors"]["warning_background"] as String)
|
||||||
..loadingOverlayTextColorInt =
|
..loadingOverlayTextColorInt =
|
||||||
parseColor(json["colors"]["loading_overlay_text_color"] as String)
|
parseColor(json["colors"]["loading_overlay_text_color"] as String)
|
||||||
..myStackContactIconBGInt =
|
..myStackContactIconBGInt =
|
||||||
parseColor(json["colors"]["my_stack_contact_icon_bg"] as String)
|
parseColor(json["colors"]["my_stack_contact_icon_bg"] as String)
|
||||||
..textConfirmTotalAmountInt =
|
..textConfirmTotalAmountInt =
|
||||||
parseColor(json["colors"]["text_confirm_total_amount"] as String)
|
parseColor(json["colors"]["text_confirm_total_amount"] as String)
|
||||||
..textSelectedWordTableItemInt =
|
..textSelectedWordTableItemInt =
|
||||||
parseColor(json["colors"]["text_selected_word_table_iterm"] as String)
|
parseColor(json["colors"]["text_selected_word_table_iterm"] as String)
|
||||||
..favoriteStarActiveInt =
|
..favoriteStarActiveInt =
|
||||||
parseColor(json["colors"]["favorite_star_active"] as String)
|
parseColor(json["colors"]["favorite_star_active"] as String)
|
||||||
..favoriteStarInactiveInt =
|
..favoriteStarInactiveInt =
|
||||||
parseColor(json["colors"]["favorite_star_inactive"] as String)
|
parseColor(json["colors"]["favorite_star_inactive"] as String)
|
||||||
..rateTypeToggleColorOnInt =
|
..rateTypeToggleColorOnInt =
|
||||||
parseColor(json["colors"]["rate_type_toggle_color_on"] as String)
|
parseColor(json["colors"]["rate_type_toggle_color_on"] as String)
|
||||||
..rateTypeToggleColorOffInt =
|
..rateTypeToggleColorOffInt =
|
||||||
parseColor(json["colors"]["rate_type_toggle_color_off"] as String)
|
parseColor(json["colors"]["rate_type_toggle_color_off"] as String)
|
||||||
..rateTypeToggleDesktopColorOnInt = parseColor(
|
..rateTypeToggleDesktopColorOnInt = parseColor(
|
||||||
json["colors"]["rate_type_toggle_desktop_color_on"] as String)
|
json["colors"]["rate_type_toggle_desktop_color_on"] as String)
|
||||||
..rateTypeToggleDesktopColorOffInt = parseColor(
|
..rateTypeToggleDesktopColorOffInt = parseColor(
|
||||||
|
@ -1815,19 +1815,19 @@ class StackTheme {
|
||||||
..ethTagTextInt = parseColor(json["colors"]["eth_tag_text"] as String)
|
..ethTagTextInt = parseColor(json["colors"]["eth_tag_text"] as String)
|
||||||
..ethTagBGInt = parseColor(json["colors"]["eth_tag_bg"] as String)
|
..ethTagBGInt = parseColor(json["colors"]["eth_tag_bg"] as String)
|
||||||
..ethWalletTagTextInt =
|
..ethWalletTagTextInt =
|
||||||
parseColor(json["colors"]["eth_wallet_tag_text"] as String)
|
parseColor(json["colors"]["eth_wallet_tag_text"] as String)
|
||||||
..ethWalletTagBGInt =
|
..ethWalletTagBGInt =
|
||||||
parseColor(json["colors"]["eth_wallet_tag_bg"] as String)
|
parseColor(json["colors"]["eth_wallet_tag_bg"] as String)
|
||||||
..tokenSummaryTextPrimaryInt =
|
..tokenSummaryTextPrimaryInt =
|
||||||
parseColor(json["colors"]["token_summary_text_primary"] as String)
|
parseColor(json["colors"]["token_summary_text_primary"] as String)
|
||||||
..tokenSummaryTextSecondaryInt =
|
..tokenSummaryTextSecondaryInt =
|
||||||
parseColor(json["colors"]["token_summary_text_secondary"] as String)
|
parseColor(json["colors"]["token_summary_text_secondary"] as String)
|
||||||
..tokenSummaryBGInt =
|
..tokenSummaryBGInt =
|
||||||
parseColor(json["colors"]["token_summary_bg"] as String)
|
parseColor(json["colors"]["token_summary_bg"] as String)
|
||||||
..tokenSummaryButtonBGInt =
|
..tokenSummaryButtonBGInt =
|
||||||
parseColor(json["colors"]["token_summary_button_bg"] as String)
|
parseColor(json["colors"]["token_summary_button_bg"] as String)
|
||||||
..tokenSummaryIconInt =
|
..tokenSummaryIconInt =
|
||||||
parseColor(json["colors"]["token_summary_icon"] as String);
|
parseColor(json["colors"]["token_summary_icon"] as String);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Grab the int value of the hex color string.
|
/// Grab the int value of the hex color string.
|
||||||
|
@ -1840,7 +1840,7 @@ class StackTheme {
|
||||||
} else {
|
} else {
|
||||||
throw ArgumentError(
|
throw ArgumentError(
|
||||||
'"$colorHex" and corresponding int '
|
'"$colorHex" and corresponding int '
|
||||||
'value "$colorValue" is not a valid color.',
|
'value "$colorValue" is not a valid color.',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
|
@ -1857,13 +1857,16 @@ class StackTheme {
|
||||||
|
|
||||||
final Map<Coin, Color> result = {};
|
final Map<Coin, Color> result = {};
|
||||||
|
|
||||||
for (final coin in Coin.values) {
|
for (final coin in Coin.values.map((e) => e.mainNetVersion)) {
|
||||||
if (map[coin.name] is String) {
|
if (map[coin.name] is String) {
|
||||||
result[coin] = Color(
|
result[coin] = Color(
|
||||||
(map[coin.name] as String).toBigIntFromHex.toInt(),
|
(map[coin.name] as String).toBigIntFromHex.toInt(),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
result[coin] = kCoinThemeColorDefaults.forCoin(coin);
|
Logging.instance.log(
|
||||||
|
"Color not found in theme for $coin",
|
||||||
|
level: LogLevel.Error,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2078,18 +2081,18 @@ class ThemeAssetsV2 implements IThemeAssets {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Map<Coin, String> get coinIcons => _coinIcons ??= parseCoinAssetsString(
|
Map<Coin, String> get coinIcons => _coinIcons ??= parseCoinAssetsString(
|
||||||
coinIconsString,
|
coinIconsString,
|
||||||
placeHolder: coinPlaceholder,
|
placeHolder: coinPlaceholder,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Map<Coin, String>? _coinIcons;
|
Map<Coin, String>? _coinIcons;
|
||||||
late final String coinIconsString;
|
late final String coinIconsString;
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Map<Coin, String> get coinImages => _coinImages ??= parseCoinAssetsString(
|
Map<Coin, String> get coinImages => _coinImages ??= parseCoinAssetsString(
|
||||||
coinImagesString,
|
coinImagesString,
|
||||||
placeHolder: coinPlaceholder,
|
placeHolder: coinPlaceholder,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Map<Coin, String>? _coinImages;
|
Map<Coin, String>? _coinImages;
|
||||||
late final String coinImagesString;
|
late final String coinImagesString;
|
||||||
|
@ -2164,9 +2167,9 @@ class ThemeAssetsV2 implements IThemeAssets {
|
||||||
}
|
}
|
||||||
|
|
||||||
static Map<Coin, String> parseCoinAssetsString(
|
static Map<Coin, String> parseCoinAssetsString(
|
||||||
String jsonString, {
|
String jsonString, {
|
||||||
required String placeHolder,
|
required String placeHolder,
|
||||||
}) {
|
}) {
|
||||||
final json = jsonDecode(jsonString) as Map;
|
final json = jsonDecode(jsonString) as Map;
|
||||||
final map = Map<String, dynamic>.from(json);
|
final map = Map<String, dynamic>.from(json);
|
||||||
|
|
||||||
|
@ -2348,18 +2351,18 @@ class ThemeAssetsV3 implements IThemeAssets {
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Map<Coin, String> get coinIcons => _coinIcons ??= parseCoinAssetsString(
|
Map<Coin, String> get coinIcons => _coinIcons ??= parseCoinAssetsString(
|
||||||
coinIconsString,
|
coinIconsString,
|
||||||
placeHolder: coinPlaceholder,
|
placeHolder: coinPlaceholder,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Map<Coin, String>? _coinIcons;
|
Map<Coin, String>? _coinIcons;
|
||||||
late final String coinIconsString;
|
late final String coinIconsString;
|
||||||
|
|
||||||
@ignore
|
@ignore
|
||||||
Map<Coin, String> get coinImages => _coinImages ??= parseCoinAssetsString(
|
Map<Coin, String> get coinImages => _coinImages ??= parseCoinAssetsString(
|
||||||
coinImagesString,
|
coinImagesString,
|
||||||
placeHolder: coinPlaceholder,
|
placeHolder: coinPlaceholder,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Map<Coin, String>? _coinImages;
|
Map<Coin, String>? _coinImages;
|
||||||
late final String coinImagesString;
|
late final String coinImagesString;
|
||||||
|
@ -2379,9 +2382,9 @@ class ThemeAssetsV3 implements IThemeAssets {
|
||||||
_coinCardImages ??= coinCardImagesString == null
|
_coinCardImages ??= coinCardImagesString == null
|
||||||
? null
|
? null
|
||||||
: parseCoinAssetsString(
|
: parseCoinAssetsString(
|
||||||
coinCardImagesString!,
|
coinCardImagesString!,
|
||||||
placeHolder: coinPlaceholder,
|
placeHolder: coinPlaceholder,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Map<Coin, String>? _coinCardImages;
|
Map<Coin, String>? _coinCardImages;
|
||||||
late final String? coinCardImagesString;
|
late final String? coinCardImagesString;
|
||||||
|
@ -2391,9 +2394,9 @@ class ThemeAssetsV3 implements IThemeAssets {
|
||||||
_coinCardFavoritesImages ??= coinCardFavoritesImagesString == null
|
_coinCardFavoritesImages ??= coinCardFavoritesImagesString == null
|
||||||
? null
|
? null
|
||||||
: parseCoinAssetsString(
|
: parseCoinAssetsString(
|
||||||
coinCardFavoritesImagesString!,
|
coinCardFavoritesImagesString!,
|
||||||
placeHolder: coinPlaceholder,
|
placeHolder: coinPlaceholder,
|
||||||
);
|
);
|
||||||
@ignore
|
@ignore
|
||||||
Map<Coin, String>? _coinCardFavoritesImages;
|
Map<Coin, String>? _coinCardFavoritesImages;
|
||||||
@Name("otherStringParam1")
|
@Name("otherStringParam1")
|
||||||
|
@ -2450,15 +2453,15 @@ class ThemeAssetsV3 implements IThemeAssets {
|
||||||
)
|
)
|
||||||
..coinCardImagesString = json["coins"]["cards"] is Map
|
..coinCardImagesString = json["coins"]["cards"] is Map
|
||||||
? createCoinAssetsString(
|
? createCoinAssetsString(
|
||||||
"$themeId/assets",
|
"$themeId/assets",
|
||||||
Map<String, dynamic>.from(json["coins"]["cards"] as Map),
|
Map<String, dynamic>.from(json["coins"]["cards"] as Map),
|
||||||
)
|
)
|
||||||
: null
|
: null
|
||||||
..coinCardFavoritesImagesString = json["coins"]["favoriteCards"] is Map
|
..coinCardFavoritesImagesString = json["coins"]["favoriteCards"] is Map
|
||||||
? createCoinAssetsString(
|
? createCoinAssetsString(
|
||||||
"$themeId/assets",
|
"$themeId/assets",
|
||||||
Map<String, dynamic>.from(json["coins"]["favoriteCards"] as Map),
|
Map<String, dynamic>.from(json["coins"]["favoriteCards"] as Map),
|
||||||
)
|
)
|
||||||
: null
|
: null
|
||||||
..loadingGifRelative = json["loading_gif"] is String
|
..loadingGifRelative = json["loading_gif"] is String
|
||||||
? "$themeId/assets/${json["loading_gif"] as String}"
|
? "$themeId/assets/${json["loading_gif"] as String}"
|
||||||
|
@ -2499,9 +2502,9 @@ class ThemeAssetsV3 implements IThemeAssets {
|
||||||
}
|
}
|
||||||
|
|
||||||
static Map<Coin, String> parseCoinAssetsString(
|
static Map<Coin, String> parseCoinAssetsString(
|
||||||
String jsonString, {
|
String jsonString, {
|
||||||
required String placeHolder,
|
required String placeHolder,
|
||||||
}) {
|
}) {
|
||||||
final json = jsonDecode(jsonString) as Map;
|
final json = jsonDecode(jsonString) as Map;
|
||||||
final map = Map<String, dynamic>.from(json);
|
final map = Map<String, dynamic>.from(json);
|
||||||
|
|
||||||
|
@ -2571,4 +2574,4 @@ abstract class IThemeAssets {
|
||||||
|
|
||||||
String? get loadingGif;
|
String? get loadingGif;
|
||||||
String? get background;
|
String? get background;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ import 'package:stackwallet/widgets/coin_card.dart';
|
||||||
|
|
||||||
class WalletSummary extends StatelessWidget {
|
class WalletSummary extends StatelessWidget {
|
||||||
const WalletSummary({
|
const WalletSummary({
|
||||||
Key? key,
|
super.key,
|
||||||
required this.walletId,
|
required this.walletId,
|
||||||
required this.initialSyncStatus,
|
required this.initialSyncStatus,
|
||||||
this.aspectRatio = 2.0,
|
this.aspectRatio = 2.0,
|
||||||
|
@ -23,7 +23,7 @@ class WalletSummary extends StatelessWidget {
|
||||||
this.minWidth = 200.0,
|
this.minWidth = 200.0,
|
||||||
this.maxHeight = 250.0,
|
this.maxHeight = 250.0,
|
||||||
this.maxWidth = 400.0,
|
this.maxWidth = 400.0,
|
||||||
}) : super(key: key);
|
});
|
||||||
|
|
||||||
final String walletId;
|
final String walletId;
|
||||||
final WalletSyncStatus initialSyncStatus;
|
final WalletSyncStatus initialSyncStatus;
|
||||||
|
|
|
@ -63,18 +63,21 @@ class WalletSummaryInfo extends ConsumerWidget {
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
|
|
||||||
final externalCalls = ref.watch(
|
final externalCalls = ref.watch(
|
||||||
prefsChangeNotifierProvider.select((value) => value.externalCalls));
|
prefsChangeNotifierProvider.select((value) => value.externalCalls),
|
||||||
|
);
|
||||||
final coin = ref.watch(pWalletCoin(walletId));
|
final coin = ref.watch(pWalletCoin(walletId));
|
||||||
final balance = ref.watch(pWalletBalance(walletId));
|
final balance = ref.watch(pWalletBalance(walletId));
|
||||||
|
|
||||||
final locale = ref.watch(
|
final locale = ref.watch(
|
||||||
localeServiceChangeNotifierProvider.select((value) => value.locale));
|
localeServiceChangeNotifierProvider.select((value) => value.locale),
|
||||||
|
);
|
||||||
|
|
||||||
final baseCurrency = ref
|
final baseCurrency = ref
|
||||||
.watch(prefsChangeNotifierProvider.select((value) => value.currency));
|
.watch(prefsChangeNotifierProvider.select((value) => value.currency));
|
||||||
|
|
||||||
final priceTuple = ref.watch(priceAnd24hChangeNotifierProvider
|
final priceTuple = ref.watch(
|
||||||
.select((value) => value.getPrice(coin)));
|
priceAnd24hChangeNotifierProvider.select((value) => value.getPrice(coin)),
|
||||||
|
);
|
||||||
|
|
||||||
final _showAvailable =
|
final _showAvailable =
|
||||||
ref.watch(walletBalanceToggleStateProvider.state).state ==
|
ref.watch(walletBalanceToggleStateProvider.state).state ==
|
||||||
|
@ -206,7 +209,7 @@ class WalletSummaryInfo extends ConsumerWidget {
|
||||||
initialSyncStatus: initialSyncStatus,
|
initialSyncStatus: initialSyncStatus,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -99,11 +99,11 @@ import 'package:tuple/tuple.dart';
|
||||||
/// [eventBus] should only be set during testing
|
/// [eventBus] should only be set during testing
|
||||||
class WalletView extends ConsumerStatefulWidget {
|
class WalletView extends ConsumerStatefulWidget {
|
||||||
const WalletView({
|
const WalletView({
|
||||||
Key? key,
|
super.key,
|
||||||
required this.walletId,
|
required this.walletId,
|
||||||
this.eventBus,
|
this.eventBus,
|
||||||
this.clipboardInterface = const ClipboardWrapper(),
|
this.clipboardInterface = const ClipboardWrapper(),
|
||||||
}) : super(key: key);
|
});
|
||||||
|
|
||||||
static const String routeName = "/wallet";
|
static const String routeName = "/wallet";
|
||||||
static const double navBarHeight = 65.0;
|
static const double navBarHeight = 65.0;
|
||||||
|
|
|
@ -8,10 +8,12 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:stackwallet/models/isar/stack_theme.dart';
|
import 'package:stackwallet/models/isar/stack_theme.dart';
|
||||||
import 'package:stackwallet/themes/stack_colors.dart';
|
import 'package:stackwallet/themes/stack_colors.dart';
|
||||||
import 'package:stackwallet/themes/theme_service.dart';
|
import 'package:stackwallet/themes/theme_service.dart';
|
||||||
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
|
|
||||||
final applicationThemesDirectoryPathProvider = StateProvider((ref) => "");
|
final applicationThemesDirectoryPathProvider = StateProvider((ref) => "");
|
||||||
|
|
||||||
|
@ -38,3 +40,11 @@ final themeAssetsProvider = StateProvider<IThemeAssets>(
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
final pCoinColor = StateProvider.family<Color, Coin>(
|
||||||
|
(ref, coin) =>
|
||||||
|
ref.watch(
|
||||||
|
themeProvider.select((value) => value.coinColors[coin.mainNetVersion]),
|
||||||
|
) ??
|
||||||
|
Colors.deepOrangeAccent,
|
||||||
|
);
|
||||||
|
|
|
@ -29,7 +29,7 @@ final pThemeService = Provider<ThemeService>((ref) {
|
||||||
});
|
});
|
||||||
|
|
||||||
class ThemeService {
|
class ThemeService {
|
||||||
static const _currentDefaultThemeVersion = 9;
|
static const _currentDefaultThemeVersion = 10;
|
||||||
ThemeService._();
|
ThemeService._();
|
||||||
static ThemeService? _instance;
|
static ThemeService? _instance;
|
||||||
static ThemeService get instance => _instance ??= ThemeService._();
|
static ThemeService get instance => _instance ??= ThemeService._();
|
||||||
|
|
|
@ -14,7 +14,7 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
import 'package:stackwallet/themes/coin_card_provider.dart';
|
import 'package:stackwallet/themes/coin_card_provider.dart';
|
||||||
import 'package:stackwallet/themes/stack_colors.dart';
|
import 'package:stackwallet/themes/theme_providers.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/wallets/isar/providers/wallet_info_provider.dart';
|
import 'package:stackwallet/wallets/isar/providers/wallet_info_provider.dart';
|
||||||
|
@ -68,9 +68,7 @@ class CoinCard extends ConsumerWidget {
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Theme.of(context)
|
color: ref.watch(pCoinColor(coin)),
|
||||||
.extension<StackColors>()!
|
|
||||||
.colorForCoin(coin),
|
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue