bug fixes
This commit is contained in:
@@ -6,11 +6,11 @@ class MapSettingsModalState {
|
||||
final bool isRestrictedParkingZoneActive;
|
||||
|
||||
MapSettingsModalState({
|
||||
required this.isAllGeomarksActive,
|
||||
required this.isAllGeozonesActive,
|
||||
required this.isRestrictedDrivingZoneActive,
|
||||
required this.isParkingZoneActive,
|
||||
required this.isRestrictedParkingZoneActive,
|
||||
this.isAllGeomarksActive = true,
|
||||
this.isAllGeozonesActive = true,
|
||||
this.isRestrictedDrivingZoneActive = true,
|
||||
this.isParkingZoneActive = true,
|
||||
this.isRestrictedParkingZoneActive = true,
|
||||
});
|
||||
|
||||
MapSettingsModalState copyWith({
|
||||
|
||||
@@ -22,6 +22,7 @@ class ScooterState {
|
||||
final double balance;
|
||||
final UserCheckFlags flags;
|
||||
final ClientNotification? lastNotification;
|
||||
final int activeRidesCount;
|
||||
|
||||
ScooterState({
|
||||
this.scooters = const [],
|
||||
@@ -38,6 +39,7 @@ class ScooterState {
|
||||
this.balance = 999,
|
||||
this.flags = const UserCheckFlags(hasFine: false, hasUnpaidOrder: false, hasCard: false),
|
||||
this.lastNotification,
|
||||
this.activeRidesCount = 0,
|
||||
});
|
||||
|
||||
ScooterState copyWith({
|
||||
@@ -55,6 +57,7 @@ class ScooterState {
|
||||
double? balance,
|
||||
UserCheckFlags? flags,
|
||||
ClientNotification? lastNotification,
|
||||
int? activeRidesCount,
|
||||
}) {
|
||||
return ScooterState(
|
||||
scooters: scooters ?? this.scooters,
|
||||
@@ -71,6 +74,7 @@ class ScooterState {
|
||||
balance: balance ?? this.balance,
|
||||
flags: flags ?? this.flags,
|
||||
lastNotification: lastNotification ?? this.lastNotification,
|
||||
activeRidesCount: activeRidesCount ?? this.activeRidesCount,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ class TariffSheetState {
|
||||
this.status = TariffSheetStatus.initial,
|
||||
this.tariffs = const [],
|
||||
this.selectedCard,
|
||||
this.isInsurance = false,
|
||||
this.isInsurance = true,
|
||||
this.errorMessage,
|
||||
this.userBalance = 0,
|
||||
this.useBalance = false,
|
||||
|
||||
Reference in New Issue
Block a user