How taufiqelahi/phi works
Project type and purpose
• This is a multi-platform Flutter e-commerce application (Android, iOS, web, Windows, macOS, Linux) that lets users browse products, manage a cart and place orders.
• It uses Riverpod for state management, GetX for navigation/controllers, Firebase (Authentication + Firestore) for backend data and auth.
File structure
• Top-level “android”, “ios”, “web”, “windows”, “macos”, “linux” folders: platform-specific Flutter runners.
• lib/
• main.dart: Flutter entry point
• component/: reusable widgets (buttons, text fields, carousels)
• screen/: UI screens organized by feature (dashboard/home, add_cart, add_product, etc.)
• backend/: business/data layer
– controller/: GetX controllers for e.g. cart item counts
– services/: functions that call Firestore (offer_func.dart, product_func.dart, utility)
– model/: domain models (Offer, Product) with Freezed+json_serializable
• utils/: shared constants and extensions
• firebase_options.dart: Firebase initialization settings
• pubspec.yaml / build files: declares Flutter, Riverpod, GetX, Firebase dependencies.
README
• Confirms feature set: product browsing, searching, Firebase Auth, cart management, order history.
• Mentions Figma design, implies a clean MVC/MVVM-style separation.
Elements
• Blue for UI/presentation
• Green for state management/controllers
• Orange for data services
• Yellow for external/cloud services