From de70faca738eca20f1321a5ec3edb4edd7b41085 Mon Sep 17 00:00:00 2001 From: M Date: Fri, 10 Jan 2020 22:28:29 +0200 Subject: [PATCH] Added listener for update trade list in action list on dashboard screen --- lib/src/stores/action_list/action_list_store.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/src/stores/action_list/action_list_store.dart b/lib/src/stores/action_list/action_list_store.dart index b38b697b7..2affe8672 100644 --- a/lib/src/stores/action_list/action_list_store.dart +++ b/lib/src/stores/action_list/action_list_store.dart @@ -53,6 +53,9 @@ abstract class ActionListBase with Store { .watch() .listen((_) async => await _updateTransactionsList()); + _onTradesChanged = + tradesSource.watch().listen((_) async => await updateTradeList()); + updateTradeList(); } @@ -145,6 +148,7 @@ abstract class ActionListBase with Store { StreamSubscription> _onTransactionsChangeSubscription; StreamSubscription _onAccountChangeSubscription; StreamSubscription _onTransactionDescriptions; + StreamSubscription _onTradesChanged; @override void dispose() { @@ -157,8 +161,8 @@ abstract class ActionListBase with Store { } _onTransactionDescriptions?.cancel(); - _onWalletChangeSubscription.cancel(); + _onTradesChanged?.cancel(); super.dispose(); }