mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-25 20:16:05 +00:00
fix: unspent coins page
This commit is contained in:
parent
3051718622
commit
cedc54c11c
1 changed files with 13 additions and 7 deletions
|
@ -1,8 +1,7 @@
|
||||||
import 'package:auto_size_text/auto_size_text.dart';
|
import 'package:auto_size_text/auto_size_text.dart';
|
||||||
import 'package:cake_wallet/palette.dart';
|
|
||||||
import 'package:cake_wallet/src/widgets/standard_checkbox.dart';
|
import 'package:cake_wallet/src/widgets/standard_checkbox.dart';
|
||||||
|
import 'package:cake_wallet/themes/extensions/cake_text_theme.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
|
||||||
import 'package:cake_wallet/generated/i18n.dart';
|
import 'package:cake_wallet/generated/i18n.dart';
|
||||||
|
|
||||||
class UnspentCoinsListItem extends StatelessWidget {
|
class UnspentCoinsListItem extends StatelessWidget {
|
||||||
|
@ -15,11 +14,6 @@ class UnspentCoinsListItem extends StatelessWidget {
|
||||||
this.onCheckBoxTap,
|
this.onCheckBoxTap,
|
||||||
});
|
});
|
||||||
|
|
||||||
static const amountColor = Palette.darkBlueCraiola;
|
|
||||||
static const addressColor = Palette.darkGray;
|
|
||||||
static const selectedItemColor = Palette.paleCornflowerBlue;
|
|
||||||
static const unselectedItemColor = Palette.moderateLavender;
|
|
||||||
|
|
||||||
final String note;
|
final String note;
|
||||||
final String amount;
|
final String amount;
|
||||||
final String address;
|
final String address;
|
||||||
|
@ -29,7 +23,17 @@ class UnspentCoinsListItem extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final unselectedItemColor = Theme.of(context).cardColor;
|
||||||
|
final selectedItemColor = Theme.of(context).primaryColor;
|
||||||
final itemColor = isSending ? selectedItemColor : unselectedItemColor;
|
final itemColor = isSending ? selectedItemColor : unselectedItemColor;
|
||||||
|
|
||||||
|
final amountColor = isSending
|
||||||
|
? Colors.white
|
||||||
|
: Theme.of(context).extension<CakeTextTheme>()!.titleColor;
|
||||||
|
final addressColor = isSending
|
||||||
|
? Colors.white.withOpacity(0.5)
|
||||||
|
: Theme.of(context).extension<CakeTextTheme>()!.secondaryTextColor;
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
height: 70,
|
height: 70,
|
||||||
padding: EdgeInsets.symmetric(vertical: 6, horizontal: 12),
|
padding: EdgeInsets.symmetric(vertical: 6, horizontal: 12),
|
||||||
|
@ -41,6 +45,8 @@ class UnspentCoinsListItem extends StatelessWidget {
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.only(right: 12),
|
padding: EdgeInsets.only(right: 12),
|
||||||
child: StandardCheckbox(
|
child: StandardCheckbox(
|
||||||
|
iconColor: amountColor,
|
||||||
|
borderColor: addressColor,
|
||||||
value: isSending, onChanged: (value) => onCheckBoxTap?.call())),
|
value: isSending, onChanged: (value) => onCheckBoxTap?.call())),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Column(
|
child: Column(
|
||||||
|
|
Loading…
Reference in a new issue