mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
* Add initial checkbox for RBF * minor progress * minor progress * Minor progress * Debugging RBF * Minor fix * Fix RBF transaction inputs (now it's working) * New versions Fix issues with Monero.com * Add sending for Solana tokens exchanges * Add default keyword for P2WPKH [skip ci] * chore: Switch solana commitment to confirmed to reduced blockhash expiration (#1313) * Modify test workflow to send arm64-v8a build only * Fix workflow build path * Remove unnecessary reverse of txId * Update Replace by fee with the new bitcoin base implementation * btc custom fee priority * add feeRate to btc credential * UI fixes * add check if the change covers the fee * Update settings_store.dart * add check confirmation for rbf * add a check to see if the change is sufficient for the new fee * addressing PR comments * update localization files * addressing PR comments * minor fixes * Update transaction_details_view_model.dart * Minor Fix for building Monero.com [skip ci] * update localization files * add bump fee page * update localisation files * Update cw_bitcoin.dart * fix merge conflict * fix UI issues * Fix Conflicts, Fix RBF flow, some enhancements * prevent default custom fee rate * hide outputs and inputs items * minor fix [skip ci] * addressing PR comments * remove rbf checkbox * default picker value * minor ui change [skip ci] * min fee rate [skip ci] * Minor fix and some minor enhancements --------- Co-authored-by: OmarHatem <omarh.ismail1@gmail.com> Co-authored-by: Adegoke David <64401859+Blazebrain@users.noreply.github.com>
74 lines
2.1 KiB
Dart
74 lines
2.1 KiB
Dart
import 'package:cake_wallet/themes/extensions/cake_text_theme.dart';
|
|
import 'package:cake_wallet/palette.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:cake_wallet/themes/extensions/filter_theme.dart';
|
|
|
|
class CheckboxWidget extends StatefulWidget {
|
|
CheckboxWidget({required this.value, required this.caption, required this.onChanged});
|
|
|
|
final bool value;
|
|
final String caption;
|
|
final Function(bool) onChanged;
|
|
|
|
@override
|
|
CheckboxWidgetState createState() => CheckboxWidgetState(value, caption, onChanged);
|
|
}
|
|
|
|
class CheckboxWidgetState extends State<CheckboxWidget> {
|
|
CheckboxWidgetState(this.value, this.caption, this.onChanged);
|
|
|
|
bool value;
|
|
String caption;
|
|
Function(bool) onChanged;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return InkWell(
|
|
onTap: () {
|
|
value = !value;
|
|
onChanged(value);
|
|
setState(() {});
|
|
},
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: <Widget>[
|
|
Container(
|
|
height: 24.0,
|
|
width: 24.0,
|
|
margin: EdgeInsets.only(right: 10.0),
|
|
decoration: BoxDecoration(
|
|
border: Border.all(
|
|
color: value
|
|
? Palette.blueCraiola
|
|
: Theme.of(context).extension<FilterTheme>()!.checkboxBoundsColor,
|
|
width: 1.0,
|
|
),
|
|
borderRadius: BorderRadius.all(
|
|
Radius.circular(8.0),
|
|
),
|
|
color: Theme.of(context).colorScheme.background,
|
|
),
|
|
child: value
|
|
? Icon(
|
|
Icons.check,
|
|
color: Colors.blue,
|
|
size: 20.0,
|
|
)
|
|
: null,
|
|
),
|
|
Expanded(
|
|
child: Text(
|
|
caption,
|
|
style: TextStyle(
|
|
fontWeight: FontWeight.bold,
|
|
fontSize: 14.0,
|
|
color: Theme.of(context).extension<CakeTextTheme>()!.titleColor,
|
|
),
|
|
),
|
|
)
|
|
],
|
|
)
|
|
);
|
|
}
|
|
}
|