strava_flutter icon indicating copy to clipboard operation
strava_flutter copied to clipboard

getAthleteStats type 'double' is not a subtype of type 'int?'

Open vitoramaral10 opened this issue 8 months ago • 1 comments

I/flutter (25741): Unhandled error: type 'double' is not a subtype of type 'int?' I/flutter (25741): Unhandled error: #0 new ActivityTotal.fromJson (package:strava_client/src/domain/model/model_activity_stats.dart:130:26) I/flutter (25741): #1 new ActivityStats.fromJson (package:strava_client/src/domain/model/model_activity_stats.dart:71:38) I/flutter (25741): #2 RepositoryAthleteImpl.getAthleteStats. (package:strava_client/src/data/repository/repository_athlete_impl.dart:10:50) I/flutter (25741): #3 ApiClient.getRequest.. (package:strava_client/src/data/repository/client.dart:37:63) I/flutter (25741): #4 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:932:45) I/flutter (25741): #5 Future._propagateToListeners (dart:async/future_impl.dart:961:13) I/flutter (25741): #6 Future._completeWithValue (dart:async/future_impl.dart:712:5) I/flutter (25741):

vitoramaral10 avatar May 07 '25 18:05 vitoramaral10

hey there, it'd be great if you could create a PR fixing this issue

dreampowder avatar May 07 '25 20:05 dreampowder