mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-20 17:44:31 +00:00
edit tx note fix
This commit is contained in:
parent
4a71e54b6b
commit
255d9a7813
2 changed files with 3 additions and 4 deletions
|
@ -197,7 +197,7 @@ class _EditNoteViewState extends ConsumerState<EditNoteView> {
|
||||||
_note?.copyWith(value: _noteController.text) ??
|
_note?.copyWith(value: _noteController.text) ??
|
||||||
TransactionNote(
|
TransactionNote(
|
||||||
walletId: widget.walletId,
|
walletId: widget.walletId,
|
||||||
txid: widget.walletId,
|
txid: widget.txid,
|
||||||
value: _noteController.text,
|
value: _noteController.text,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -215,7 +215,7 @@ class _EditNoteViewState extends ConsumerState<EditNoteView> {
|
||||||
_note?.copyWith(value: _noteController.text) ??
|
_note?.copyWith(value: _noteController.text) ??
|
||||||
TransactionNote(
|
TransactionNote(
|
||||||
walletId: widget.walletId,
|
walletId: widget.walletId,
|
||||||
txid: widget.walletId,
|
txid: widget.txid,
|
||||||
value: _noteController.text,
|
value: _noteController.text,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -30,7 +30,6 @@ class _TransactionNoteWatcher extends ChangeNotifier {
|
||||||
.txidWalletIdEqualTo(key.txid, key.walletId)
|
.txidWalletIdEqualTo(key.txid, key.walletId)
|
||||||
.watch(fireImmediately: true)
|
.watch(fireImmediately: true)
|
||||||
.listen((event) {
|
.listen((event) {
|
||||||
print("AAAAAA $event");
|
|
||||||
if (event.isEmpty) {
|
if (event.isEmpty) {
|
||||||
_value = null;
|
_value = null;
|
||||||
} else {
|
} else {
|
||||||
|
@ -70,6 +69,6 @@ final _wiProvider = ChangeNotifierProvider.family<_TransactionNoteWatcher,
|
||||||
final pTransactionNote =
|
final pTransactionNote =
|
||||||
Provider.family<TransactionNote?, ({String walletId, String txid})>(
|
Provider.family<TransactionNote?, ({String walletId, String txid})>(
|
||||||
(ref, key) {
|
(ref, key) {
|
||||||
return ref.watch(_wiProvider(key)).value;
|
return ref.watch(_wiProvider(key).select((value) => value.value));
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue