Skip to content

Humoudideas77/pet-ai

Repository files navigation

Rifqi | Ψ±ΩΩŠΩ‚ΩŠ

Your smart guide to happy pets | Ψ―Ω„ΩŠΩ„Ωƒ Ψ§Ω„Ψ°ΩƒΩŠ Ω„Ψ±ΩΩŠΩ‚Ωƒ Ψ§Ω„Ψ£Ω„ΩŠΩ

A GCC-focused intelligent pet identification and care application built with Flutter.

Platform Flutter Dart Languages


🎯 Mission

Rifqi empowers GCC pet owners with:

  1. AI-powered pet & breed identification from photos
  2. Intelligent care recommendations (feeding, health, training)
  3. Local ecosystem integration (pet shops, vets, groomers)
  4. Social media-ready pet photos with branding
  5. Free + Pro subscription model for sustainability

✨ Key Features

πŸ” Pet Identification

  • Upload or take a photo of any pet
  • AI identifies species and breed
  • Detailed breed profiles (temperament, size, health, care needs)
  • GCC climate suitability notes

πŸ’š Intelligent Care

  • Personalized feeding plans
  • Exercise recommendations
  • Grooming schedules
  • Vet checkup reminders
  • GCC-specific advice (heat safety, indoor living)

πŸ₯ Local Directory

  • Pet shops (food, toys, accessories)
  • Veterinary clinics (general, emergency, exotic)
  • Groomers and pet sitters (future)
  • Filter by city, services, opening hours

πŸ“Έ Social Sharing

  • Enhanced pet camera with aspect ratios
  • Branded photo templates and watermarks
  • Auto-generated bilingual captions
  • One-tap share to Instagram, WhatsApp, etc.

πŸ“š Education Hub

  • Curated articles on pet care
  • Topics: feeding, training, health, grooming, behavior
  • GCC-focused content (heat management, indoor tips)

πŸ’Ž Rifqi Pro

  • Unlimited pet identifications
  • Unlimited pets in "My Pets"
  • Extended breed profiles
  • Advanced care planning
  • Premium photo templates
  • All education content

πŸ—οΈ Architecture

Tech Stack

  • Framework: Flutter 3.0+ (Dart)
  • State Management: Riverpod
  • Routing: GoRouter
  • Local Storage: Hive
  • Localization: flutter_localizations + intl
  • Fonts: Google Fonts (Poppins, Cairo)

Design Pattern

Clean Architecture with Feature-First organization:

lib/
β”œβ”€β”€ core/          # Theme, routing, localization, constants
β”œβ”€β”€ domain/        # Entities, use cases
β”œβ”€β”€ data/          # Services, repositories, models
β”œβ”€β”€ features/      # Feature modules (UI + logic)
└── widgets/       # Shared components

Key Design Decisions

  • βœ… Bilingual-first: Complete EN/AR support with RTL
  • βœ… GCC-focused: Climate notes, regional content
  • βœ… Offline-capable: Hive for local-first experience
  • βœ… Backend-ready: Mock services easily swappable
  • βœ… Material 3: Modern, accessible design system

πŸš€ Getting Started

Prerequisites

  • Flutter SDK 3.0+
  • Dart SDK 3.0+
  • Android Studio / Xcode
  • iOS device/simulator (for iOS testing)
  • Android device/emulator (for Android testing)

Installation

  1. Clone the repository

    git clone https://github.com/your-org/rifqi-pets-app.git
    cd rifqi-pets-app
  2. Install dependencies

    flutter pub get
  3. Generate code (Hive adapters)

    flutter pub run build_runner build --delete-conflicting-outputs
  4. Run the app

    flutter run

Project Setup Checklist

  • Add fonts to assets/fonts/ (Poppins, Cairo) or use google_fonts (already configured)
  • Add logo image to assets/logo/rifqi_logo.png
  • Add onboarding images to assets/onboarding/
  • Configure native splash: flutter pub run flutter_native_splash:create
  • Configure app icons: flutter pub run flutter_launcher_icons

πŸ“ Project Structure

rifqi_pets_app/
β”‚
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ logo/              # App logo and icons
β”‚   β”œβ”€β”€ onboarding/        # Onboarding illustrations
β”‚   β”œβ”€β”€ images/            # General images
β”‚   β”œβ”€β”€ icons/             # Custom icons
β”‚   β”œβ”€β”€ breeds/            # Breed photos (optional)
β”‚   └── fonts/             # Poppins & Cairo fonts (optional with google_fonts)
β”‚
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ main.dart                  # App entry point
β”‚   β”‚
β”‚   β”œβ”€β”€ core/
β”‚   β”‚   β”œβ”€β”€ theme/                 # βœ… Theme system (colors, typography)
β”‚   β”‚   β”œβ”€β”€ routing/               # TODO: GoRouter configuration
β”‚   β”‚   β”œβ”€β”€ localization/          # βœ… i18n setup
β”‚   β”‚   └── constants/             # βœ… App constants
β”‚   β”‚
β”‚   β”œβ”€β”€ domain/
β”‚   β”‚   └── entities/              # βœ… All data models (User, Pet, Breed, etc.)
β”‚   β”‚
β”‚   β”œβ”€β”€ data/
β”‚   β”‚   β”œβ”€β”€ services/              # βœ… Mock AI services
β”‚   β”‚   β”œβ”€β”€ mock_data/             # βœ… Mock breed database
β”‚   β”‚   β”œβ”€β”€ repositories/          # TODO: Hive repositories
β”‚   β”‚   └── local/                 # TODO: Hive initialization
β”‚   β”‚
β”‚   β”œβ”€β”€ features/                  # TODO: UI screens by feature
β”‚   β”‚   β”œβ”€β”€ onboarding/
β”‚   β”‚   β”œβ”€β”€ home/
β”‚   β”‚   β”œβ”€β”€ pet_identification/
β”‚   β”‚   β”œβ”€β”€ pet_profile/
β”‚   β”‚   β”œβ”€β”€ my_pets/
β”‚   β”‚   β”œβ”€β”€ care_plan/
β”‚   β”‚   β”œβ”€β”€ reminders/
β”‚   β”‚   β”œβ”€β”€ education/
β”‚   β”‚   β”œβ”€β”€ shops/
β”‚   β”‚   β”œβ”€β”€ vets/
β”‚   β”‚   β”œβ”€β”€ camera_share/
β”‚   β”‚   β”œβ”€β”€ subscription/
β”‚   β”‚   └── settings/
β”‚   β”‚
β”‚   β”œβ”€β”€ widgets/                   # TODO: Shared UI components
β”‚   β”‚
β”‚   └── l10n/
β”‚       β”œβ”€β”€ intl_en.arb            # βœ… English translations
β”‚       └── intl_ar.arb            # βœ… Arabic translations
β”‚
β”œβ”€β”€ RIFQI_ARCHITECTURE.md          # βœ… Detailed architecture docs
β”œβ”€β”€ IMPLEMENTATION_STATUS.md       # βœ… What's done, what's next
β”œβ”€β”€ pubspec.yaml                   # βœ… Dependencies configured
└── README.md                      # βœ… This file

Legend:

  • βœ… = Completed
  • TODO = Needs implementation

🎨 Brand Identity

Colors

  • Primary Teal: #00897B - Calm, modern, trustworthy
  • Warm Coral: #FF7043 - Playful accent for CTAs
  • Soft Cream: #FFF3E0 - Background warmth
  • Paw Grey: #CFD8DC - Neutral elements

Typography

  • English: Poppins (friendly, rounded, modern)
  • Arabic: Cairo (clean, highly readable)

Tone

  • Warm, friendly, trustworthy
  • Family-oriented, caring
  • Intelligent without being clinical
  • GCC culturally aware

🌍 Localization

Supported Languages

  • πŸ‡¬πŸ‡§ English (LTR)
  • πŸ‡ΈπŸ‡¦ Arabic (RTL)

Adding Translations

  1. Edit lib/l10n/intl_en.arb and intl_ar.arb
  2. Run code generation (if using flutter_gen):
    flutter pub run intl_utils:generate

GCC Countries

  • πŸ‡°πŸ‡Ό Kuwait
  • πŸ‡ΈπŸ‡¦ Saudi Arabia
  • πŸ‡¦πŸ‡ͺ United Arab Emirates
  • πŸ‡ΆπŸ‡¦ Qatar
  • πŸ‡§πŸ‡­ Bahrain
  • πŸ‡΄πŸ‡² Oman

πŸ“Š Data Models

All entities are bilingual and Hive-ready:

  • User - Authentication, subscription, preferences
  • PetBreed - Complete breed encyclopedia
  • UserPet - User's pets with care history
  • PetPrediction - AI identification results
  • PetCareAdvice - Personalized recommendations
  • Reminder - Care reminders
  • Article - Education content
  • PetShop - Pet shop directory
  • VetClinic - Veterinary clinic directory
  • Subscription - Free/Pro management
  • ShareTemplate - Photo sharing templates

See lib/domain/entities/ for complete definitions.


πŸ€– AI Services (Mock)

Pet Identification

PetIdentificationService

  • Simulates ML model predictions
  • Returns top 3 breed matches with confidence
  • Production: Integrate TensorFlow Lite, Cloud Vision API, or custom model

Care Advisor

PetCareAdvisorService

  • Rule-based care recommendations
  • Considers breed, age, weight, GCC climate
  • Production: Integrate LLM (GPT-4, Claude) for personalized advice

Breed Database

MockBreedsDatabase

  • 10+ GCC-suitable breeds (dogs, cats, birds, rabbits)
  • Bilingual content with climate notes
  • Production: Replace with REST API or Firestore

πŸ’° Monetization

Free Tier

  • 20 pet identifications/month
  • Up to 3 pets in "My Pets"
  • Basic breed profiles
  • Basic care tips
  • Standard photo templates

Rifqi Pro (SaaS)

  • Unlimited identifications
  • Unlimited pets
  • Extended breed profiles
  • Advanced care planning
  • Premium photo templates
  • All education content
  • Advanced reminders
  • Customizable watermarks

Implementation: UI-only paywall for MVP. Backend billing integration ready.


πŸ›£οΈ Roadmap

Phase 1: MVP βœ… (Current)

  • βœ… Core architecture
  • βœ… Theme & localization
  • βœ… Data models
  • βœ… Mock services
  • 🚧 UI implementation (in progress)

Phase 2: AI Integration

  • Real pet identification model (TensorFlow Lite / Cloud API)
  • LLM-powered care chatbot
  • Dynamic breed content from backend
  • Personalized recommendations

Phase 3: Backend & Cloud

  • User authentication (Firebase / Supabase)
  • Cloud database & sync
  • Push notifications
  • Real subscription billing (In-App Purchases / Stripe)
  • Analytics & crash reporting

Phase 4: Community & Commerce

  • User reviews (shops/vets)
  • Pet adoption listings
  • E-commerce integration (affiliate links)
  • Vet appointment booking
  • Grooming service scheduling

Phase 5: Advanced Features

  • Video pet identification
  • Vet telemedicine
  • Health tracker (weight, medications)
  • Wearable integration (activity trackers)
  • Multi-pet household optimization

πŸ“– Documentation


πŸ§ͺ Testing (Future)

# Unit tests
flutter test

# Integration tests
flutter test integration_test

# Widget tests
flutter test test/widgets

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“„ License

This project is proprietary. All rights reserved.


πŸ“ž Contact & Support


πŸ™ Acknowledgments

  • Flutter team for amazing framework
  • GCC pet community for inspiration
  • All pet lovers across the Gulf

Built with ❀️ for pets and their families across the GCC

About

pet ai

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages