mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
fix: fix show theme preview in incognito without network loading
This commit is contained in:
parent
451e5e1259
commit
147914f650
1 changed files with 6 additions and 6 deletions
|
@ -9,7 +9,6 @@ import 'package:stackwallet/models/isar/stack_theme.dart';
|
|||
import 'package:stackwallet/providers/db/main_db_provider.dart';
|
||||
import 'package:stackwallet/providers/global/prefs_provider.dart';
|
||||
import 'package:stackwallet/themes/stack_colors.dart';
|
||||
import 'package:stackwallet/themes/theme_providers.dart';
|
||||
import 'package:stackwallet/themes/theme_service.dart';
|
||||
import 'package:stackwallet/utilities/logger.dart';
|
||||
import 'package:stackwallet/utilities/show_loading.dart';
|
||||
|
@ -196,11 +195,12 @@ class _StackThemeCardState extends ConsumerState<StackThemeCard> {
|
|||
)
|
||||
: Builder(
|
||||
builder: (context) {
|
||||
final themePreview = ref.watch(
|
||||
themeProvider.select(
|
||||
(value) => value.assets.themePreview,
|
||||
),
|
||||
);
|
||||
final themePreview = ref
|
||||
.watch(pThemeService)
|
||||
.getTheme(themeId: widget.data.id)
|
||||
?.assets
|
||||
.themePreview ??
|
||||
"";
|
||||
|
||||
return (themePreview.endsWith(".png"))
|
||||
? Image.file(
|
||||
|
|
Loading…
Reference in a new issue