Skip to content

Commit

Permalink
transparent tx history
Browse files Browse the repository at this point in the history
custom send toggle
  • Loading branch information
hhanh00 committed Jun 7, 2024
1 parent e1fbce0 commit 9876b35
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion lib/pages/accounts/send.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ class _QuickSendState extends State<QuickSendPage> with WithLoadingAnimation {
int addressPools = 0;
bool isTex = false;
int rp = 0;
late bool custom;

@override
void initState() {
super.initState();
custom = widget.custom ^ appSettings.customSend;
_didUpdateSendContext(widget.sendContext);
}

Expand All @@ -85,7 +87,6 @@ class _QuickSendState extends State<QuickSendPage> with WithLoadingAnimation {

@override
Widget build(BuildContext context) {
final custom = widget.custom ^ appSettings.customSend;
final customSendSettings = appSettings.customSendSettings;
final spendable = getSpendable(_pools, balances);
final numReceivers = numPoolsOf(addressPools);
Expand All @@ -94,6 +95,10 @@ class _QuickSendState extends State<QuickSendPage> with WithLoadingAnimation {
appBar: AppBar(
title: Text(s.send),
actions: [
IconButton(
onPressed: _toggleCustom,
icon: Icon(Icons.tune),
),
IconButton(
onPressed: send,
icon: Icon(widget.single ? Icons.send : Icons.add),
Expand Down Expand Up @@ -273,4 +278,8 @@ class _QuickSendState extends State<QuickSendPage> with WithLoadingAnimation {
addressPools = receivers & coinSettings.receipientPools;
rp = addressPools;
}

_toggleCustom() {
setState(() => custom = !custom);
}
}
2 changes: 1 addition & 1 deletion native/zcash-sync
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.6.0+529
version: 1.6.0+530

environment:
sdk: ">=3.0.0 <4.0.0"
Expand Down

0 comments on commit 9876b35

Please sign in to comment.