New tab list on clients

This commit is contained in:
Juan Gilsanz Polo 2023-04-06 18:10:23 +02:00
parent a5f38915b4
commit 1508c49536
10 changed files with 440 additions and 351 deletions

View file

@ -1,3 +1,4 @@
import 'package:adguard_home_manager/constants/enums.dart';
import 'package:adguard_home_manager/models/blocked_services.dart';
import 'package:flutter/material.dart';
import 'package:sqflite/sqflite.dart';
@ -26,7 +27,7 @@ class ServersProvider with ChangeNotifier {
List<String> _protectionsManagementProcess = []; // protections that are currenty being enabled or disabled
final Clients _clients = Clients(
loadStatus: 0, // 0 = loading, 1 = loaded, 2 = error
loadStatus: LoadStatus.loading,
data: null
);
@ -125,7 +126,7 @@ class ServersProvider with ChangeNotifier {
notifyListeners();
}
void setClientsLoadStatus(int status, bool notify) {
void setClientsLoadStatus(LoadStatus status, bool notify) {
_clients.loadStatus = status;
if (notify == true) {
notifyListeners();