strava_flutter 1.2.2+62 strava_flutter: ^1.2.2+62 copied to clipboard
Fluytter/Dart code to access Strava v3 API including new authentication process (with expired date and refresh token)
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add strava_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
strava_flutter: ^1.2.2+62
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:strava_flutter/API/Oauth.dart';
import 'package:strava_flutter/API/activities.dart';
import 'package:strava_flutter/API/athletes.dart';
import 'package:strava_flutter/API/clubs.dart';
import 'package:strava_flutter/API/constants.dart';
import 'package:strava_flutter/API/races.dart';
import 'package:strava_flutter/API/segmentEfforts.dart';
import 'package:strava_flutter/API/segments.dart';
import 'package:strava_flutter/API/upload.dart';
import 'package:strava_flutter/Models/OldsummaryActivity.dart';
import 'package:strava_flutter/Models/activity.dart';
import 'package:strava_flutter/Models/athlete.dart';
import 'package:strava_flutter/Models/club.dart';
import 'package:strava_flutter/Models/detailedAthlete.dart';
import 'package:strava_flutter/Models/fault.dart';
import 'package:strava_flutter/Models/gear.dart';
import 'package:strava_flutter/Models/runningRace.dart';
import 'package:strava_flutter/Models/segment.dart';
import 'package:strava_flutter/Models/segmentEffort.dart';
import 'package:strava_flutter/Models/stats.dart';
import 'package:strava_flutter/Models/summaryAthlete.dart';
import 'package:strava_flutter/Models/token.dart';
import 'package:strava_flutter/Models/uploadActivity.dart';
import 'package:strava_flutter/Models/zone.dart';
import 'package:strava_flutter/errorCodes.dart';
import 'package:strava_flutter/globals.dart';
import 'package:strava_flutter/strava.dart';