fix buy image in wallet view on mobile

This commit is contained in:
sneurlax 2023-01-27 11:47:42 -06:00
parent 58ea92fd5a
commit 957b9cb6a3
2 changed files with 3 additions and 4 deletions

View file

@ -433,7 +433,7 @@ class _WalletNavigationBarState extends State<WalletNavigationBar> {
children: [
const Spacer(),
SvgPicture.asset(
Assets.svg.buyDesktop,
Assets.svg.buy(context),
width: 24,
height: 24,
),

View file

@ -32,9 +32,8 @@ class _BUY {
const _BUY();
// TODO: switch this to something like
// String buy(BuildContext context) =>
// "assets/svg/${Theme.of(context).extension<StackColors>()!.themeType.name}/buy.svg";
String get buy => "assets/svg/light/buy-coins-icon.svg";
String buy(BuildContext context) =>
"assets/svg/${Theme.of(context).extension<StackColors>()!.themeType.name}/buy-coins-icon.svg";
String simplexLogo(BuildContext context) {
return (Theme.of(context).extension<StackColors>()!.themeType ==