How moabozeed/e_commerce works
This is a Flutter ecommerce app. The customer workflow is authentication, product browsing and detail viewing, cart management, then checkout; the README also lists order history. The tree shows dedicated auth, product, and cart layers, but their Dart sources were not sampled, so internal call relationships are left unverified. Admin dashboard and management capabilities are documented in the README, but no corresponding implementation path appears in the tree.
Main entry points: auth_repository_impl.dart Auth repository · product_repository_impl.dart Product repository · cart_page.dart Cart screen · core Shared services
Components 21
App entry
- Flutter entry
lib/main.dart
Authentication
- Auth screens
lib/features/auth/presentation/pages - Auth state
lib/features/auth/presentation/bloc/auth_bloc.dart - Auth use cases
lib/features/auth/domain/usecases - Auth repository
lib/features/auth/data/repository/auth_repository_impl.dart - Remote auth
lib/features/auth/data/datasource/remote/auth_remote_datasource_impl.dart - Local auth
lib/features/auth/data/datasource/local/auth_local_data_source_impl.dart
Product catalog
- Product screens
lib/features/products/presentation/pages - Product state
lib/features/products/presentation/controller/product_bloc.dart - Product retrieval
lib/features/products/domain/usecase/get_product_usecase.dart - Product repository
lib/features/products/data/repository/product_repository_impl.dart - Remote products
lib/features/products/data/datasource/product_remote_data_source.dart
Cart and checkout
- Cart screen
lib/features/cart/presentation/page/cart_page.dart - Cart state
lib/features/cart/presentation/bloc/cart_bloc.dart - Cart operations
lib/features/cart/domain/usecase - Cart repository
lib/features/cart/data/repository/cart_repository_impl.dart - Checkout process
lib/features/cart/presentation/widget/cart_checkout_section.dart - Order history
Shared infrastructure
- Shared services
lib/core
Other components
- Customer
- Admin capabilities
Connections 22
- Customer → Flutter entry: opens app
- Flutter entry → Auth screens: routes to
- Auth screens → Auth state: dispatches
- Auth state → Auth use cases: invokes
- Auth use cases → Auth repository: delegates
- Auth repository → Remote auth: uses
- Auth repository → Local auth: uses
- Customer → Product screens: browses
- Product screens → Product state: dispatches
- Product state → Product retrieval: invokes
- Product retrieval → Product repository: delegates
- Product repository → Remote products: uses
- Customer → Cart screen: manages cart
- Cart screen → Cart state: dispatches
- Cart state → Cart operations: invokes
- Cart operations → Cart repository: delegates
- Cart screen → Checkout process: presents
- Customer → Order history: views history
README.md - Customer → Admin capabilities: uses admin app
README.md - Auth repository → Shared services: may use
- Product repository → Shared services: may use
- Cart repository → Shared services: may use