From 6ed6ffb18b4e293f9c7e60f00ca20e01f5493ebe Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 10 May 2023 13:25:17 -0600 Subject: [PATCH] add previewImageUrl property --- lib/themes/theme_service.dart | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/themes/theme_service.dart b/lib/themes/theme_service.dart index 343056225..cbdecfe56 100644 --- a/lib/themes/theme_service.dart +++ b/lib/themes/theme_service.dart @@ -178,11 +178,13 @@ class StackThemeMetaData { final String name; final String id; final String sha256; + final String previewImageUrl; StackThemeMetaData({ required this.name, required this.id, required this.sha256, + required this.previewImageUrl, }); static StackThemeMetaData fromMap(Map map) { @@ -191,6 +193,7 @@ class StackThemeMetaData { name: map["name"] as String, id: map["id"] as String, sha256: map["sha256"] as String, + previewImageUrl: map["previewImageUrl"] as String, ); } catch (e, s) { Logging.instance.log( @@ -203,6 +206,11 @@ class StackThemeMetaData { @override String toString() { - return "$runtimeType(name: $name, id: $id, sha256: $sha256)"; + return "$runtimeType(" + "name: $name, " + "id: $id, " + "sha256: $sha256, " + "previewImageUrl: $previewImageUrl" + ")"; } }