mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
add previewImageUrl property
This commit is contained in:
parent
7c4237f8f8
commit
6ed6ffb18b
1 changed files with 9 additions and 1 deletions
|
@ -178,11 +178,13 @@ class StackThemeMetaData {
|
||||||
final String name;
|
final String name;
|
||||||
final String id;
|
final String id;
|
||||||
final String sha256;
|
final String sha256;
|
||||||
|
final String previewImageUrl;
|
||||||
|
|
||||||
StackThemeMetaData({
|
StackThemeMetaData({
|
||||||
required this.name,
|
required this.name,
|
||||||
required this.id,
|
required this.id,
|
||||||
required this.sha256,
|
required this.sha256,
|
||||||
|
required this.previewImageUrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
static StackThemeMetaData fromMap(Map<String, dynamic> map) {
|
static StackThemeMetaData fromMap(Map<String, dynamic> map) {
|
||||||
|
@ -191,6 +193,7 @@ class StackThemeMetaData {
|
||||||
name: map["name"] as String,
|
name: map["name"] as String,
|
||||||
id: map["id"] as String,
|
id: map["id"] as String,
|
||||||
sha256: map["sha256"] as String,
|
sha256: map["sha256"] as String,
|
||||||
|
previewImageUrl: map["previewImageUrl"] as String,
|
||||||
);
|
);
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
Logging.instance.log(
|
Logging.instance.log(
|
||||||
|
@ -203,6 +206,11 @@ class StackThemeMetaData {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
return "$runtimeType(name: $name, id: $id, sha256: $sha256)";
|
return "$runtimeType("
|
||||||
|
"name: $name, "
|
||||||
|
"id: $id, "
|
||||||
|
"sha256: $sha256, "
|
||||||
|
"previewImageUrl: $previewImageUrl"
|
||||||
|
")";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue