solyanka iz fix for payout page design, ledger wallet now clickable
This commit is contained in:
@@ -71,16 +71,24 @@ class WalletTransactionsController extends ChangeNotifier {
|
||||
|
||||
void _rebuildFiltered({bool notify = true}) {
|
||||
final source = _provider?.transactions ?? const <WalletTransaction>[];
|
||||
final activeWalletId = _provider?.walletId;
|
||||
_filteredTransactions = source.where((tx) {
|
||||
final walletMatch =
|
||||
activeWalletId == null || tx.walletId == activeWalletId;
|
||||
final statusMatch =
|
||||
_selectedStatuses.isEmpty || _selectedStatuses.contains(tx.status);
|
||||
final typeMatch =
|
||||
_selectedTypes.isEmpty || _selectedTypes.contains(tx.type);
|
||||
final dateMatch = _dateRange == null ||
|
||||
(tx.date.isAfter(_dateRange!.start.subtract(const Duration(seconds: 1))) &&
|
||||
tx.date.isBefore(_dateRange!.end.add(const Duration(seconds: 1))));
|
||||
final dateMatch =
|
||||
_dateRange == null ||
|
||||
(tx.date.isAfter(
|
||||
_dateRange!.start.subtract(const Duration(seconds: 1)),
|
||||
) &&
|
||||
tx.date.isBefore(
|
||||
_dateRange!.end.add(const Duration(seconds: 1)),
|
||||
));
|
||||
|
||||
return statusMatch && typeMatch && dateMatch;
|
||||
return walletMatch && statusMatch && typeMatch && dateMatch;
|
||||
}).toList();
|
||||
|
||||
if (notify) notifyListeners();
|
||||
|
||||
Reference in New Issue
Block a user