mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 19:26:37 +00:00
fix: show theme preview in incognito without network loading
This commit is contained in:
parent
4a5ca30b6f
commit
451e5e1259
1 changed files with 5 additions and 5 deletions
|
@ -196,22 +196,22 @@ class _StackThemeCardState extends ConsumerState<StackThemeCard> {
|
|||
)
|
||||
: Builder(
|
||||
builder: (context) {
|
||||
final incognitoFile = ref.watch(
|
||||
final themePreview = ref.watch(
|
||||
themeProvider.select(
|
||||
(value) => value.assets.personaIncognito,
|
||||
(value) => value.assets.themePreview,
|
||||
),
|
||||
);
|
||||
|
||||
return (incognitoFile.endsWith(".png"))
|
||||
return (themePreview.endsWith(".png"))
|
||||
? Image.file(
|
||||
File(
|
||||
incognitoFile,
|
||||
themePreview,
|
||||
),
|
||||
height: 100,
|
||||
)
|
||||
: SvgPicture.file(
|
||||
File(
|
||||
incognitoFile,
|
||||
themePreview,
|
||||
),
|
||||
height: 100,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue