spark balance icon

This commit is contained in:
julian 2024-01-04 18:58:19 -06:00
parent 09a57e246a
commit 4de6670a7d
3 changed files with 20 additions and 11 deletions

1
assets/svg/spark.svg Normal file
View file

@ -0,0 +1 @@
<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="m24.5 31.9-4.9 16.2h12.5l-4.2 13.9 16.5-20.2h-11.9l2.9-9.9z" fill="#ffce31" transform="matrix(1.25 0 0 2 -6 -62)"/></svg>

After

Width:  |  Height:  |  Size: 190 B

View file

@ -10,6 +10,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:stackwallet/providers/wallet/public_private_balance_state_provider.dart';
import 'package:stackwallet/providers/wallet/wallet_balance_toggle_state_provider.dart';
import 'package:stackwallet/themes/stack_colors.dart';
@ -119,17 +120,22 @@ class DesktopPrivateBalanceToggleButton extends ConsumerWidget {
),
),
child: Center(
child: Image(
image: AssetImage(
currentType == FiroType.public
? Assets.png.glasses
: Assets.png.glassesHidden,
),
width: 16,
color: currentType == FiroType.spark
? Theme.of(context).extension<StackColors>()!.accentColorYellow
: null,
),
child: currentType == FiroType.spark
? SvgPicture.asset(
Assets.svg.spark,
width: 16,
// color: Theme.of(context)
// .extension<StackColors>()!
// .accentColorYellow,
)
: Image(
image: AssetImage(
currentType == FiroType.public
? Assets.png.glasses
: Assets.png.glassesHidden,
),
width: 16,
),
),
),
);

View file

@ -246,6 +246,8 @@ class _SVG {
String get particl => "assets/svg/coin_icons/Particl.svg";
String get bnbIcon => "assets/svg/coin_icons/bnb_icon.svg";
String get spark => "assets/svg/spark.svg";
}
class _PNG {