mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
fix: token view summary icon asset loading
This commit is contained in:
parent
9732b395ef
commit
ba33aee395
1 changed files with 17 additions and 8 deletions
|
@ -308,14 +308,23 @@ class TokenOptionsButton extends StatelessWidget {
|
|||
child: child,
|
||||
),
|
||||
),
|
||||
child: SvgPicture.file(
|
||||
File(iconAssetPathSVG),
|
||||
color: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.tokenSummaryIcon,
|
||||
width: iconSize,
|
||||
height: iconSize,
|
||||
),
|
||||
child: iconAssetPathSVG.startsWith("assets/")
|
||||
? SvgPicture.asset(
|
||||
iconAssetPathSVG,
|
||||
color: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.tokenSummaryIcon,
|
||||
width: iconSize,
|
||||
height: iconSize,
|
||||
)
|
||||
: SvgPicture.file(
|
||||
File(iconAssetPathSVG),
|
||||
color: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.tokenSummaryIcon,
|
||||
width: iconSize,
|
||||
height: iconSize,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue