Changed filter clients modal design

This commit is contained in:
Juan Gilsanz Polo 2024-01-27 23:08:04 +01:00
parent 7f77b3c6ca
commit 0b0f38cd2e
8 changed files with 253 additions and 189 deletions

View file

@ -20,7 +20,7 @@ class LogsProvider with ChangeNotifier {
DateTime? _logsOlderThan;
String _selectedResultStatus = 'all';
String? _searchText;
List<String>? _selectedClients;
List<String> _selectedClients = [];
int _logsQuantity = 100;
int _offset = 0;
@ -65,7 +65,7 @@ class LogsProvider with ChangeNotifier {
return _offset;
}
List<String>? get selectedClients {
List<String> get selectedClients {
return _selectedClients;
}
@ -131,7 +131,7 @@ class LogsProvider with ChangeNotifier {
}
void setSelectedClients(List<String>? clients) {
_selectedClients = clients;
_selectedClients = clients ?? [];
notifyListeners();
}