mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-03 09:19:22 +00:00
fix: theme file conversion
This commit is contained in:
parent
044c957152
commit
6259290d99
2 changed files with 1 additions and 3 deletions
Binary file not shown.
|
@ -40,9 +40,7 @@ class ThemeService {
|
||||||
throw Exception("Invalid theme archive: Missing theme.json");
|
throw Exception("Invalid theme archive: Missing theme.json");
|
||||||
}
|
}
|
||||||
|
|
||||||
final OutputStream os = OutputStream();
|
final jsonString = utf8.decode(themeJsonFiles.first.content as List<int>);
|
||||||
themeJsonFiles.first.decompress(os);
|
|
||||||
final String jsonString = utf8.decode(os.getBytes());
|
|
||||||
final json = jsonDecode(jsonString) as Map;
|
final json = jsonDecode(jsonString) as Map;
|
||||||
|
|
||||||
final theme = StackTheme.fromJson(
|
final theme = StackTheme.fromJson(
|
||||||
|
|
Loading…
Reference in a new issue