How mahmoud-adel-ali/fruit_hub_e_commerce_app works
Fruit Hub is a Flutter fruit-shopping app, as indicated by its name and feature structure; the README itself provides no product workflow details. The tree shows onboarding, authentication, product browsing, cart, checkout, orders, and profile capabilities. Source excerpts cover only desktop platform runners, not the Dart runtime, so feature relationships and backend behavior cannot be verified; dashed, uncited edges mark only the likely user journey.
Main entry points: orders_repo_impl.dart Order data access · main.dart App entry · fruit_hub_app.dart App shell · products_view.dart Product catalog
Components 16
App shell
- App entry
lib/main.dart - App shell
lib/fruit_hub_app.dart - Onboarding
lib/features/on_boarding/presentation/views/on_boarding_view.dart - Firebase services
lib/core/services/firestore_service.dart
Identity and profile
- Sign in and signup
lib/features/auth/presentation/views/signin_view.dart - Profile
lib/features/profile/presentation/view/profile_view.dart
Product discovery
- Product catalog
lib/features/home/presentation/views/products_view.dart - Best sellers
lib/features/best_selling_fruits/presentation/views/best_selling_view.dart - Product data access
lib/core/repos/products_repo/products_repo_impl.dart
Purchase flow
- Cart
lib/features/cart/presentation/views/cart_view.dart - Checkout
lib/features/checkout/presentation/views/checkout_view.dart - Order submission
lib/features/checkout/presentation/manager/add_order_cubit.dart/add_order_cubit.dart
Order management
- Order history
lib/features/orders/presentation/views/orders_view.dart - Order retrieval
lib/features/orders/presentation/manager/fetch_orders_cubit/fetch_orders_cubit.dart - Order data access
lib/core/repos/orders_repo/orders_repo_impl.dart
Other components
- Customer
Connections 17
- Customer → App entry: launches
- App entry → App shell: starts
- App shell → Onboarding: may show
- Customer → Sign in and signup: authenticates
- Customer → Product catalog: browses
- Customer → Best sellers: views
- Product catalog → Product data access: may load
- Customer → Cart: manages
- Customer → Checkout: checks out
- Checkout → Order submission: may submit
- Customer → Order history: views
- Order history → Order retrieval: may request
- Order retrieval → Order data access: may query
- Order submission → Order data access: may save
- Profile → Sign in and signup: may sign out
- Product data access → Firebase services: may use
- Order data access → Firebase services: may use