mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-23 19:16:09 +00:00
fix checkbox
This commit is contained in:
parent
4027619ad3
commit
9fea5c11a2
2 changed files with 4 additions and 25 deletions
|
@ -1,5 +1,6 @@
|
||||||
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/palette.dart';
|
||||||
|
import 'package:cake_wallet/src/widgets/standard_checkbox.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:cake_wallet/generated/i18n.dart';
|
import 'package:cake_wallet/generated/i18n.dart';
|
||||||
|
@ -43,30 +44,8 @@ class UnspentCoinsListItem extends StatelessWidget {
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.only(right: 12),
|
padding: EdgeInsets.only(right: 12),
|
||||||
child: GestureDetector(
|
child: StandardCheckbox(
|
||||||
onTap: () => onCheckBoxTap?.call(),
|
value: isSending, onChanged: (value) => onCheckBoxTap?.call())
|
||||||
child: Container(
|
|
||||||
height: 24.0,
|
|
||||||
width: 24.0,
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
border: Border.all(
|
|
||||||
color: Theme.of(context)
|
|
||||||
.primaryTextTheme!
|
|
||||||
.caption!
|
|
||||||
.color!,
|
|
||||||
width: 1.0),
|
|
||||||
borderRadius: BorderRadius.all(
|
|
||||||
Radius.circular(8.0)),
|
|
||||||
color: itemColor),
|
|
||||||
child: isSending
|
|
||||||
? Icon(
|
|
||||||
Icons.check,
|
|
||||||
color: Colors.blue,
|
|
||||||
size: 20.0,
|
|
||||||
)
|
|
||||||
: Offstage(),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Column(
|
child: Column(
|
||||||
|
|
|
@ -21,7 +21,7 @@ abstract class UnspentCoinsListViewModelBase with Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
WalletBase wallet;
|
WalletBase wallet;
|
||||||
Box<UnspentCoinsInfo> _unspentCoinsInfo;
|
final Box<UnspentCoinsInfo> _unspentCoinsInfo;
|
||||||
|
|
||||||
@computed
|
@computed
|
||||||
ObservableList<UnspentCoinsItem> get items => ObservableList.of(bitcoin!.getUnspents(wallet).map((elem) {
|
ObservableList<UnspentCoinsItem> get items => ObservableList.of(bitcoin!.getUnspents(wallet).map((elem) {
|
||||||
|
|
Loading…
Reference in a new issue