buddy

Buddy - Rent a Buddy & Safe Connections Platform

Buddy is a fast, responsive, cross-platform Flutter application (Android + Web) inspired by companionship platforms like buddysearch.in. It features an original modern design system (coral & indigo aesthetics), robust authentication architecture, and a free-tier database layer (Supabase PostgreSQL / Firebase Firestore).


πŸš€ Key Features

  1. Original Visual Identity & Design System:
    • Built with Material 3 styling, custom trust badges, rounded modern cards, and a warm coral (#FF5364) + deep iris indigo (#6C5CE7) palette.
    • Clean card-based layouts for verified buddies with activity tags, ratings, and instant booking hooks.
  2. Core Sub-pages & Modules:
    • Explore & Search Hub: Search buddies by keywords, filter across 12+ Pan-India cities (Delhi NCR, Bengaluru, Mumbai, Pune, Kolkata, Jaipur, etc.), and filter by 8 distinct hangout categories.
    • Interactive Buddy Earnings Calculator: Allows users to calculate potential income by adjusting hours/week and desired hourly rate (e.g. β‚Ή15,000 to β‚Ή60,000+/month).
    • Multi-step Profile Setup & Onboarding: Name, verified phone number validation, city selection, bio, and a toggle to β€œBecome a Verified Buddy” with hourly rate and preferred activities.
    • Public Venue Booking Flow: Schedule date, time, duration (hours), public meeting point (Starbucks, mall, park), special notes, and safety agreement.
    • My Bookings Manager: View active, confirmed, and completed sessions with live cost breakdowns.
    • Transparent Membership Plans: Free Explorer, Buddy Plus (β‚Ή399/mo), and VIP Pass (β‚Ή899/3mo).
  3. Security & Free-Tier Database:
    • Zero Secrets in Git: Sensitive credentials stored strictly in .env (which is included in .gitignore). Template committed as .env.example.
    • Database Security Rules:
    • Offline-First & Graceful Fallback: Works immediately out-of-the-box with a local cached repository so the app can be tested right away without requiring immediate cloud setup.

πŸ› οΈ Project Structure

Buddy/
β”œβ”€β”€ .env.example                       # Environment secrets template
β”œβ”€β”€ .env                              # Local secrets (gitignored)
β”œβ”€β”€ pubspec.yaml                      # Dependencies & asset declarations
β”œβ”€β”€ security/
β”‚   β”œβ”€β”€ supabase_schema_and_rules.sql # Supabase RLS security rules & schema
β”‚   └── firestore.rules               # Firestore security rules
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ main.dart                     # App entry point
β”‚   β”œβ”€β”€ config/
β”‚   β”‚   └── app_config.dart           # Safe .env loader
β”‚   β”œβ”€β”€ models/
β”‚   β”‚   β”œβ”€β”€ user_profile.dart         # User & Buddy profile model
β”‚   β”‚   β”œβ”€β”€ booking.dart              # Booking schedule model
β”‚   β”‚   └── category_and_plans.dart   # Categories & subscription models
β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”œβ”€β”€ mock_data.dart            # Pan-India cities, categories, buddies
β”‚   β”‚   └── buddy_repository.dart     # Auth, session & booking manager
β”‚   β”œβ”€β”€ theme/
β”‚   β”‚   └── app_theme.dart            # Coral/Indigo palette & UI theme
β”‚   β”œβ”€β”€ widgets/
β”‚   β”‚   └── buddy_card.dart           # Responsive Buddy profile card
β”‚   └── screens/
β”‚       β”œβ”€β”€ home/home_screen.dart     # Main exploration & navigation shell
β”‚       β”œβ”€β”€ auth/
β”‚       β”‚   β”œβ”€β”€ google_auth_dialog.dart
β”‚       β”‚   └── profile_setup_screen.dart
β”‚       β”œβ”€β”€ booking/
β”‚       β”‚   β”œβ”€β”€ booking_modal.dart
β”‚       β”‚   └── my_bookings_screen.dart
β”‚       β”œβ”€β”€ calculator/earnings_calculator_screen.dart
β”‚       └── plans/membership_plans_screen.dart

πŸƒ Running the Application

1. Web

flutter run -d chrome
# Or to build release:
flutter build web --release

2. Android

flutter run -d android
# Or to build APK:
flutter build apk --release