Merge pull request #17 from cake-tech/actions-list-trades-update

Added listener for update trade list in action list on dashboard screen
This commit is contained in:
M
2020-01-10 22:29:18 +02:00
@@ -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<List<TransactionInfo>> _onTransactionsChangeSubscription;
StreamSubscription<Account> _onAccountChangeSubscription;
StreamSubscription<BoxEvent> _onTransactionDescriptions;
StreamSubscription<BoxEvent> _onTradesChanged;
@override
void dispose() {
@@ -157,8 +161,8 @@ abstract class ActionListBase with Store {
}
_onTransactionDescriptions?.cancel();
_onWalletChangeSubscription.cancel();
_onTradesChanged?.cancel();
super.dispose();
}