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.5or higher - Dart SDK:
v3.11.5or 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
- Extract the backend source code and navigate to the project directory:
<code>cd FitnessStudio/FitnessStudio</code>
- Open
appsettings.jsonand 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, andApiSecret. - InAppPurchases: Adjust company commission and store fee percentages.
- Smtp: Enter your transactional email host, port, and credentials.
- Place your
firebase-adminsdk.jsonfile inside theKeys/directory. - If using StoreKit or Google Play server-side verification, place the respective Apple
.p8key and Google Play service account JSON key inside theKeys/directory. - Apply database migrations and seed default data:
dotnet ef database update
- Start the API:
dotnet run
Scalar API documentation will be available at
https://localhost:7094/scalar.
2. Docker Deployment (Alternative)
- Ensure Docker Desktop or Docker Engine is active.
- From the repository root directory, run:
docker-compose up -d --build
3. Mobile Client Configuration & Setup
- Navigate to the mobile app directory:
cd FitnessApp
- Install dependencies:
flutter pub get
- Generate JSON DTO models:
dart run build_runner build --delete-conflicting-outputs
- Point the client to your API endpoint:
- Open
lib/core/config/env_config.dartand update the base API URL.
- Open
- Add Firebase configuration files:
- Place
google-services.jsonintoandroid/app/. - Place
GoogleService-Info.plistintoios/Runner/.
- Place
- 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/, runpod install, then execute:flutter build ipa --release
| Author | h71991 |
|---|---|
| Category | App Templates / Flutter / Full Applications |
| Price | $74 |
| Extended License | $222 |
| First Release | Sep 5, 2026 |
| Last Update | Sep 5, 2026 |
| Files included | .md, pubspec.yaml, .csproj |
| Operating systems | Android 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 language | C#, Dart |
Categories
Tags
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.
Products of the Week.
Submit🥇
Perceptle
Perceptle is a daily browser-based game that challenges you to test your sensory intuition through five quick estimation and rhythm-based rounds.
Other · 3,957 views · 16 clicksOther · Week 47 · 3,957 views · 16 clicks
🥈
Free LinkedIn Likes From Real
Get free LinkedIn likes on your posts from real members who react by hand. No
SaaS · 4,075 views · 18 clicksSaaS · Week 47 · 4,075 views · 18 clicks
🥉
STOP GUESSING WHAT TO POST
AI that learns your brand voice and builds a month of consistent, on-brand social content: carousels, posts and hooks that sound like you, not like everyone else's AI.
SaaS · 11,557 views · 80 clicksSaaS · Week 47 · 11,557 views · 80 clicks
#4
aaas.market
407 reliable micro tools for solo founders, marketers and creators. They work in your browser
SaaS · 3,936 views · 7 clicksSaaS · Week 47 · 3,936 views · 7 clicks