fix functional bugs

This commit is contained in:
2026-05-29 11:40:55 +03:00
parent 591265a7fc
commit 134ffdde60
50 changed files with 1086 additions and 771 deletions

View File

@@ -12,6 +12,8 @@ class ActiveRideState {
final double cost;
final bool isPaused;
final bool inZone;
final double latitude;
final double longitude;
const ActiveRideState({
this.status = ActiveRideStatus.initial,
@@ -20,6 +22,8 @@ class ActiveRideState {
this.elapsedTime = Duration.zero,
this.speed = 0.0,
this.distance = 0.0,
this.latitude = 0.0,
this.longitude = 0.0,
this.cost = 0.0,
this.isPaused = false,
this.inZone = true,
@@ -33,6 +37,8 @@ class ActiveRideState {
double? speed,
double? distance,
double? cost,
double? longitude,
double? latitude,
bool? isPaused,
bool? inZone,
}) {
@@ -44,6 +50,8 @@ class ActiveRideState {
speed: speed ?? this.speed,
distance: distance ?? this.distance,
cost: cost ?? this.cost,
latitude: latitude ?? this.latitude,
longitude: longitude ?? this.longitude,
isPaused: isPaused ?? this.isPaused,
inZone: inZone ?? this.inZone,
);