Skip to content

About

Flutter starter app (Dart 3.5+, video_player) for MoveKit 3D exercise animations. Zero-key startup with a 1-line switch to bundled or Hosted MP4s.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

MoveKit Flutter Starter

Flutter starter app (Dart 3.5+ null-safe + video_player + http) for browsing and playing MoveKit 3D exercise animations. Starts with zero API key against live watermarked evaluation previews, then upgrades to bundled self-hosted clips or MoveKit Hosted streaming with a single activeMediaMode change.

MoveKit 3D exercise animations: Barbell Bench Press, Dumbbell Goblet Squat, Cable Row, and Kettlebell Swing

Watermarked previews on previews.movekit.com are for development, staging, and evaluation only. Clean high-resolution H.264 MP4 clips and exact first-frame posters ship via a one-time MoveKit pack or optional MoveKit Hosted streaming.

MoveKit Docs | Exercise Database (GitHub) | Hugging Face | Kaggle | SDK & CLI (movekit) | Expo Starter


Quickstart (no API key)

git clone https://github.com/movekit-dev/movekit-flutter-starter.git
cd movekit-flutter-starter && flutter create . && flutter pub get
flutter run

flutter create . generates native ios/, android/, and web/ runner folders for your installed Flutter SDK without overwriting lib/ or test/. On launch, the app fetches all 697 exercises from movekit-dev/exercise-database on jsDelivr CDN and plays muted, looping previews immediately.

Run the unit tests anytime:

flutter test

What's included

  • Typed catalog wrapper model (lib/models/exercise.dart): Parses the real { count, source, license, about, exercises } wrapper from exercise-database, normalizing id as String along with aliases, primaryMuscles, secondaryMuscles, equipment, implementsNeeded, movementPattern, difficulty, durationSeconds, poster, and preview.
  • Unified Dart media resolver (lib/services/exercise_media_resolver.dart): Mirrors createExerciseMediaResolver from movekit@0.2.0 across ExerciseMediaMode.preview, ExerciseMediaMode.local, and ExerciseMediaMode.hosted. Throws a StateError if fallbackToPreview is enabled in release mode (kReleaseMode) so watermarked previews never ship to production.
  • Leak-free video_player card (lib/widgets/exercise_video_card.dart): Supports both network URLs and bundled Flutter assets, muted looping with mixWithOthers: true, reduced-motion handling (MediaQuery.disableAnimationsOf), first-frame poster placeholder while initializing, and strict dispose() cleanup in scrollable lists.
  • Material 3 browser (lib/main.dart): Light and dark theme support, instant search across names and aliases, and horizontal filter chips for all 16 primary muscle groups.
  • Unit tests (test/exercise_media_resolver_test.dart): Covers wrapper JSON parsing, alias matching, preview/local/hosted resolution, Paid Pack ZIP metadata, and the kReleaseMode guard.

One-line production upgrade (preview -> local or hosted)

Every MoveKit surface shares the exact same id and slug join keys. Keep your widget code unchanged and switch activeMediaMode in lib/main.dart:

Option A: Self-hosted (ExerciseMediaMode.local, default for paid packs)

Every MoveKit pack (Starter US$199 to Complete US$399, localized by country) or single exercise (US$4.99) is a one-time purchase that includes API access for self-hosting with no monthly fee.

# Without MOVEKIT_API_KEY: pulls the 12 free unwatermarked sample clips into assets/movekit/
# With MOVEKIT_API_KEY in .env.local: pulls every exercise your account owns
npx movekit import --dir assets/movekit
  1. Uncomment the assets/movekit/catalog.json and assets/movekit/assets/ lines in pubspec.yaml (or point localBasePath to your own CDN such as https://cdn.example.com/movekit for Paid Pack ZIP files).
  2. Set activeMediaMode = ExerciseMediaMode.local in lib/main.dart.

Option B: MoveKit Hosted (ExerciseMediaMode.hosted, optional monthly add-on)

Building an AI workout coach or an open-ended exercise picker where bundling hundreds of videos does not fit? Optional MoveKit Hosted streaming starts at US$29/month (25 GB), US$99/month (100 GB), or US$299/month (500 GB) in US list prices, localized by country, and requires a pack or single exercise purchase.

# Requires MOVEKIT_API_KEY and an active MoveKit Hosted add-on
npx movekit sync-hosted --dir assets/movekit
  1. Uncomment - assets/movekit/catalog.json in pubspec.yaml.
  2. Set activeMediaMode = ExerciseMediaMode.hosted in lib/main.dart.

Related links

License

  • Starter app code: MIT License.
  • Exercise metadata (movekit-dev/exercise-database): CC BY 4.0 (MoveKit, https://movekit.com).
  • MoveKit 3D videos, posters, watermarked previews, and coaching cues: Excluded from MIT and CC BY 4.0. See NOTICE and the MoveKit License Agreement.

About

Flutter starter app (Dart 3.5+, video_player) for MoveKit 3D exercise animations. Zero-key startup with a 1-line switch to bundled or Hosted MP4s.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages