fix: theme file conversion

This commit is contained in:
julian 2023-06-05 10:07:50 -06:00
parent 044c957152
commit 6259290d99
2 changed files with 1 additions and 3 deletions

Binary file not shown.

View file

@ -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(