Skip to content

Commit 8f5020b

Browse files
author
Patrick FINKELSTEIN
committed
bug fix detailedAthlete model
1 parent 2724566 commit 8f5020b

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class _StravaFlutterPageState extends State<StravaFlutterPage> {
4747
secret, // Put your secret key in secret.dart file
4848
"http://localhost:8080",
4949
'auto',
50-
'profile:read_all', // The scope you need
50+
'profile:read_all, profile:write', // The scope you need
5151
// Check https://developers.strava.com/docs/oauth-updates/ scope update
5252
);
5353

lib/Models/detailedAthlete.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ class DetailedAthlete {
2222
int badgeTypeId;
2323
String profileMedium;
2424
String profile;
25-
Null friend;
26-
Null follower;
25+
String friend;
26+
String follower;
2727
int followerCount;
2828
int friendCount;
2929
int mutualFriendCount;
3030
int athleteType;
3131
String datePreference;
3232
String measurementPreference;
33-
List<Null> clubs;
34-
Null ftp;
35-
int weight;
33+
// List<Null> clubs;
34+
int ftp;
35+
double weight;
3636
List<Bikes> bikes;
3737
List<Shoes> shoes;
3838

@@ -61,7 +61,7 @@ class DetailedAthlete {
6161
this.athleteType,
6262
this.datePreference,
6363
this.measurementPreference,
64-
this.clubs,
64+
// this.clubs,
6565
this.ftp,
6666
this.weight,
6767
this.bikes,

0 commit comments

Comments
 (0)