Implemented settings, new scan, enhanced UI/UX

This commit is contained in:
Dennis Nemec
2025-11-04 16:52:39 +01:00
parent b19a6e1cd4
commit 7ea9108f62
79 changed files with 3306 additions and 566 deletions

View File

@ -8,6 +8,24 @@ class CarsLoading extends CarsState {}
class CarsLoadingFailed extends CarsState {}
class CarAdded extends CarsState {
Car car;
CarAdded({required this.car});
}
class CarDeleted extends CarsState {
String plate;
CarDeleted({required this.plate});
}
class CarEdited extends CarsState {
Car car;
CarEdited({required this.car});
}
class CarsLoaded extends CarsState {
List<Car> cars;
String teamId;
@ -15,9 +33,6 @@ class CarsLoaded extends CarsState {
CarsLoaded({required this.cars, required this.teamId});
CarsLoaded copyWith({List<Car>? cars, String? teamId}) {
return CarsLoaded(
cars: cars ?? this.cars,
teamId: teamId ?? this.teamId,
);
return CarsLoaded(cars: cars ?? this.cars, teamId: teamId ?? this.teamId);
}
}
}