bug fixes

This commit is contained in:
2026-09-04 13:41:57 +03:00
parent cf5b56e365
commit 5f57af2ad2
14 changed files with 201 additions and 89 deletions

View File

@@ -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({

View File

@@ -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,
);
}
}

View File

@@ -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,