mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 02:07:43 +00:00
check if gradientBackground is null
This commit is contained in:
parent
c206ed3e77
commit
fbc61403d8
1 changed files with 2 additions and 4 deletions
|
@ -65,7 +65,7 @@ class StackTheme {
|
||||||
} else {
|
} else {
|
||||||
_gradientBackground ??= GradientExt.fromJson(
|
_gradientBackground ??= GradientExt.fromJson(
|
||||||
Map<String, dynamic>.from(
|
Map<String, dynamic>.from(
|
||||||
jsonDecode(gradientBackgroundString!) as Map,
|
jsonDecode(gradientBackgroundString) as Map,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1650,9 +1650,7 @@ class StackTheme {
|
||||||
parseColor(json["colors"]["background"]["background"] as String),
|
parseColor(json["colors"]["background"]["background"] as String),
|
||||||
backgroundAppBarInt: parseColor(
|
backgroundAppBarInt: parseColor(
|
||||||
json["colors"]["background"]["backgroundAppBar"] as String),
|
json["colors"]["background"]["backgroundAppBar"] as String),
|
||||||
gradientBackgroundString: json["gradients"]["background"] == null
|
gradientBackgroundString: jsonEncode(json["gradients"] ?? ["background"]),
|
||||||
? null
|
|
||||||
: jsonEncode(json["gradients"]["background"] as Map),
|
|
||||||
standardBoxShadowString:
|
standardBoxShadowString:
|
||||||
jsonEncode(json["box_shadows"]["standard"] as Map),
|
jsonEncode(json["box_shadows"]["standard"] as Map),
|
||||||
homeViewButtonBarBoxShadowString:
|
homeViewButtonBarBoxShadowString:
|
||||||
|
|
Loading…
Reference in a new issue