flutter_workoutkit 0.0.4 flutter_workoutkit: ^0.0.4 copied to clipboard
A Flutter plugin that leverages Apple's WorkoutKit SDK to create, preview, and sync custom workouts with the Apple Watch Workout app.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add flutter_workoutkit
With Flutter:
$ flutter pub add flutter_workoutkit
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
flutter_workoutkit: ^0.0.4
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_workoutkit/classes/index.dart';
import 'package:flutter_workoutkit/classes/workoutAlerts/cadence_range_alert.class.dart';
import 'package:flutter_workoutkit/classes/workoutAlerts/cadence_threshold_alert.class.dart';
import 'package:flutter_workoutkit/classes/workoutAlerts/heart_rate_range_alert.class.dart';
import 'package:flutter_workoutkit/classes/workoutAlerts/heart_rate_zone_alert.class.dart';
import 'package:flutter_workoutkit/classes/workoutAlerts/index.dart';
import 'package:flutter_workoutkit/classes/workoutAlerts/pace_range_alert.class.dart';
import 'package:flutter_workoutkit/classes/workoutAlerts/pace_threshold_alert.class.dart';
import 'package:flutter_workoutkit/classes/workoutAlerts/power_range_alert.class.dart';
import 'package:flutter_workoutkit/classes/workoutAlerts/power_threshold_alert.class.dart';
import 'package:flutter_workoutkit/classes/workoutAlerts/power_zone_alert.class.dart';
import 'package:flutter_workoutkit/classes/workoutAlerts/speed_range_alert.class.dart';
import 'package:flutter_workoutkit/classes/workoutAlerts/speed_threshold_alert.class.dart';
import 'package:flutter_workoutkit/classes/workoutAlerts/workout_alert.class.dart';
import 'package:flutter_workoutkit/classes/workoutParts/index.dart';
import 'package:flutter_workoutkit/classes/workoutParts/interval_block.class.dart';
import 'package:flutter_workoutkit/classes/workoutParts/interval_step.class.dart';
import 'package:flutter_workoutkit/classes/workoutParts/multisport_activity.class.dart';
import 'package:flutter_workoutkit/classes/workoutParts/workout_goal.class.dart';
import 'package:flutter_workoutkit/classes/workoutParts/workout_step.class.dart';
import 'package:flutter_workoutkit/classes/workouts/base_workout.class.dart';
import 'package:flutter_workoutkit/classes/workouts/custom_workout.class.dart';
import 'package:flutter_workoutkit/classes/workouts/index.dart';
import 'package:flutter_workoutkit/classes/workouts/pacer_workout.class.dart';
import 'package:flutter_workoutkit/classes/workouts/single_goal_workout.class.dart';
import 'package:flutter_workoutkit/classes/workouts/swim_bike_run_workout.class.dart';
import 'package:flutter_workoutkit/enums/goal_types.enum.dart';
import 'package:flutter_workoutkit/enums/index.dart';
import 'package:flutter_workoutkit/enums/multisport_activity.enum.dart';
import 'package:flutter_workoutkit/enums/unit_speed.enum.dart';
import 'package:flutter_workoutkit/enums/workout_activity_type.enum.dart';
import 'package:flutter_workoutkit/enums/workout_alert_metric.enum.dart';
import 'package:flutter_workoutkit/enums/workout_alert_type.enum.dart';
import 'package:flutter_workoutkit/enums/workout_location_type.enum.dart';
import 'package:flutter_workoutkit/enums/workout_swimming_location_type.enum.dart';
import 'package:flutter_workoutkit/enums/workout_type.enum.dart';
import 'package:flutter_workoutkit/sampleWorkouts/index.dart';
import 'package:flutter_workoutkit/sampleWorkouts/sample_custom_workout.dart';
import 'package:flutter_workoutkit/sampleWorkouts/sample_pacer_workout.dart';
import 'package:flutter_workoutkit/sampleWorkouts/sample_single_goal_workout.dart';
import 'package:flutter_workoutkit/sampleWorkouts/sample_swim_bik_run_workout.dart';
import 'package:flutter_workoutkit/services/WorkoutService.service.dart';
import 'package:flutter_workoutkit/workout_preview_button.dart';
import 'package:flutter_workoutkit/workoutkit.dart';
import 'package:flutter_workoutkit/workoutkit_method_channel.dart';
import 'package:flutter_workoutkit/workoutkit_platform_interface.dart';