mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-12 09:27:01 +00:00
small tweaks
This commit is contained in:
parent
21e0113439
commit
1e6b9e5830
2 changed files with 5 additions and 5 deletions
lib/widgets/wallet_info_row
|
@ -17,13 +17,13 @@ class WalletInfoCoinIcon extends StatelessWidget {
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.colorForCoin(coin)
|
.colorForCoin(coin)
|
||||||
.withOpacity(0.5),
|
.withOpacity(0.4),
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(4),
|
padding: const EdgeInsets.all(6),
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.svg.iconFor(coin: coin),
|
Assets.svg.iconFor(coin: coin),
|
||||||
width: 20,
|
width: 20,
|
||||||
|
|
|
@ -13,12 +13,12 @@ class WalletInfoRow extends ConsumerWidget {
|
||||||
const WalletInfoRow({
|
const WalletInfoRow({
|
||||||
Key? key,
|
Key? key,
|
||||||
required this.walletId,
|
required this.walletId,
|
||||||
this.onPressed,
|
this.onPressedDesktop,
|
||||||
this.padding = const EdgeInsets.all(0),
|
this.padding = const EdgeInsets.all(0),
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
final String walletId;
|
final String walletId;
|
||||||
final VoidCallback? onPressed;
|
final VoidCallback? onPressedDesktop;
|
||||||
final EdgeInsets padding;
|
final EdgeInsets padding;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -31,7 +31,7 @@ class WalletInfoRow extends ConsumerWidget {
|
||||||
return MouseRegion(
|
return MouseRegion(
|
||||||
cursor: SystemMouseCursors.click,
|
cursor: SystemMouseCursors.click,
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: onPressed,
|
onTap: onPressedDesktop,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: padding,
|
padding: padding,
|
||||||
child: Container(
|
child: Container(
|
||||||
|
|
Loading…
Reference in a new issue