Fitness Studio - Flutter App Source Code icon

Fitness Studio - Flutter App Source Code

Hot or Not
Fitness Studio - Flutter App Source Code

Description

Fitness Studio™ is a production-grade, multi-tenant digital fitness platform designed for gyms, boutique studios, personal trainers, and health marketplaces. The solution includes a responsive cross-platform mobile app built with Flutter and a high-performance backend powered by .NET 10 and PostgreSQL.

Engineered with Clean Architecture and the BLoC pattern on the frontend, alongside Vertical Slice Architecture and MediatR CQRS on the backend, this platform delivers an end-to-end operational and monetization ecosystem. Trainees enjoy a Bento-grid personal dashboard featuring hardware-level pedometer tracking, water intake, sleep metrics, caloric expenditure, food logging, class discovery, and instant booking. During live workouts, trainees connect directly to instructors using ultra-low latency WebRTC video powered by LiveKit. For trainers and studio owners, Fitness Studio™ offers a comprehensive business suite. Instructors can schedule and duplicate classes, broadcast live sessions with host-level controls, monitor real-time participant rosters, and inspect detailed revenue breakdowns. The integrated monetization system validates in-app purchases natively via Apple StoreKit 2 and Google Play Billing, automatically deducting app store cuts and studio commissions before depositing earnings into a 48-hour escrow payout workflow. Everything is decoupled, fully customizable, and ready for deployment or white-label resale to fitness clients worldwide.

Features

Trainee & Member Experience

  • Dynamic Bento-grid dashboard showing steps, water intake, sleep, and active calories.
  • Native hardware step counter bridge using device pedometer sensors.
  • Class discovery across 11 disciplines with intensity, skill, and keyword filters.
  • Smart booking workflow with support for free classes, paid drop-ins, and rescheduling.
  • Post-workout rating and review engine.
  • Interactive LiveKit WebRTC live streaming with HUD controls, chat overlay, and screen wakelock.
  • Nutrition suite with macronutrient tracking and culturally inclusive meal classifications (including Suhoor and Iftar).
  • Profile and biometrics management (height, weight, activity levels, dietary preferences, avatar upload).
  • Cyber-Fitness visual design system with native Dark and Light mode support.

Trainer & Studio Management

  • Executive analytics dashboard tracking gross sales, platform fees, commission deductions, and net payouts.
  • 48-hour revenue escrow system with automated scheduled payout dates.
  • Class lifecycle management: create, edit, duplicate, sort, and soft-delete sessions.
  • Hard capacity limits with overbooking protection.
  • Live broadcasting studio with camera flipping, audio source switching, and participant moderation.
  • Client attendance tracking and VIP loyalty analytics.

Backend & Architecture Highlights

  • ASP.NET Core Minimal APIs with .NET 10 and EF Core 10.
  • Vertical Slice Architecture with MediatR CQRS and FluentValidation pipeline behaviors.
  • PostgreSQL database utilizing sequential UUIDv7 primary keys and global query filters for soft deletion and user data isolation.
  • In-app purchase cryptographic verification via Apple StoreKit 2 JWS and Google Play Developer API.
  • Anti-fraud transaction tracking with replay protection.
  • Automated 1-minute background cron worker dispatching precision session reminders (30m, 10m, 5m).
  • Automated 30-minute background sweeper marking completed sessions for escrow release.
  • Push notification dispatch via Firebase Cloud Messaging (FCM) with self-healing token cleanup.
  • Multi-device sync, encrypted local token storage, and proactive JWT refresh handling.
  • Pre-configured Docker Compose multi-container setup (API, PostgreSQL, LiveKit SFU, Nginx gateway).

Requirements

Mobile Client (Flutter)

  • Flutter SDK: v3.11.5 or higher
  • Dart SDK: v3.11.5 or higher
  • Android Studio / VS Code with Flutter and Dart extensions
  • Xcode 15+ and CocoaPods (for iOS compilation, macOS required)
  • Physical device or simulator/emulator for testing

Backend (.NET 10)

  • .NET 10 SDK
  • PostgreSQL 16 or newer
  • EF Core CLI tools (dotnet-ef)
  • Docker Desktop (optional, for containerized deployment)

Third-Party Services (Free or Paid Tiers)

  • LiveKit Cloud account or self-hosted LiveKit instance
  • Firebase Project (for FCM push notifications)
  • Apple Developer Account (for StoreKit 2 keys & iOS deployment)
  • Google Play Console & Google Cloud Service Account (for Android billing & publishing)
  • Standard SMTP server credentials (for transactional emails)

Instructions

1. Backend Configuration & Setup

  1. Extract the backend source code and navigate to the project directory:
    <code>cd FitnessStudio/FitnessStudio</code>
    
    
    
  2. Open appsettings.json and configure the following parameters:
    • ConnectionStrings:DefaultConnection: Set your PostgreSQL host, port, username, and password.
    • Jwt: Define your Issuer, Audience, and a secure 256-bit secret key.
    • LiveKit: Provide your ServerUrl, ApiKey, and ApiSecret.
    • InAppPurchases: Adjust company commission and store fee percentages.
    • Smtp: Enter your transactional email host, port, and credentials.
  3. Place your firebase-adminsdk.json file inside the Keys/ directory.
  4. If using StoreKit or Google Play server-side verification, place the respective Apple .p8 key and Google Play service account JSON key inside the Keys/ directory.
  5. Apply database migrations and seed default data:
    dotnet ef database update
    
    
    
  6. Start the API:
    dotnet run
    
    
    

    Scalar API documentation will be available at https://localhost:7094/scalar.

2. Docker Deployment (Alternative)

  1. Ensure Docker Desktop or Docker Engine is active.
  2. From the repository root directory, run:
    docker-compose up -d --build
    
    
    

3. Mobile Client Configuration & Setup

  1. Navigate to the mobile app directory:
    cd FitnessApp
    
    
    
  2. Install dependencies:
    flutter pub get
    
    
    
  3. Generate JSON DTO models:
    dart run build_runner build --delete-conflicting-outputs
    
    
    
  4. Point the client to your API endpoint:
    • Open lib/core/config/env_config.dart and update the base API URL.
  5. Add Firebase configuration files:
    • Place google-services.json into android/app/.
    • Place GoogleService-Info.plist into ios/Runner/.
  6. Launch the app in development mode:
    flutter run
    
    
    

4. Building for Production

  • Android: Set up your keystore credentials in android/key.properties, then run:
    flutter build appbundle --release
    
    
    
  • iOS: Open the terminal, navigate to ios/, run pod install, then execute:
    flutter build ipa --release
    
    
    
Authorh71991
CategoryApp Templates / Flutter / Full Applications
Price$74
Extended License$222
First ReleaseSep 5, 2026
Last UpdateSep 5, 2026
Files included.md, pubspec.yaml, .csproj
Operating systemsAndroid 8.0, Android 9.0, iOS 12.0, Android 10.0, iOS 14.0, iOS 13.0, iOS 15.0, Android 11.0, Android 12.0, Android 13.0, Android 14.0, Android 15.0, iOS 16.0, iOS 17.0, iOS 18.0, iOS 26.0
Programming languageC#, Dart

External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.