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

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