How niazi876/online-grocery-shopping-app works
Online Grocery is a Flutter grocery-shopping UI. Its user journey spans onboarding and authentication, product discovery and detail viewing, cart management and checkout, then profile and favorites. README documents BLoC state management and shared UI foundations, but Dart source excerpts were not provided, so the graph shows only documented relationships; detailed screen-to-state calls and checkout internals remain unverified.
Main entry points: main.dart App entry · main_shell.dart Main navigation · app_router.dart App routes · home_screen.dart Home browsing
Components 17
Shopping experience
- App entry
lib/main.dart - App routes
lib/router/app_router.dart - Onboarding
lib/screens/onboarding_screen.dart - Authentication
lib/screens/auth_screen.dart - Home browsing
lib/screens/home_screen.dart - Category browsing
lib/screens/explore_screen.dart - Product details
lib/screens/product_detail_screen.dart - Cart and checkout
lib/screens/cart_screen.dart - Profile and favorites
lib/screens/profile_screen.dart - Main navigation
lib/screens/main_shell.dart
App state and data
- Auth state
lib/bloc/auth_bloc.dart - Cart state
lib/bloc/cart_bloc.dart - Product state
lib/bloc/product_bloc.dart - Product model
lib/models/product_model.dart
Shared UI foundation
- Design theme
lib/theme/app_theme.dart - Reusable widgets
lib/widgets/common_widgets.dart
Other components
- Shopper
Connections 17
- Shopper → App entry: opens app
README.md - App entry → App routes: uses routes
README.md - App routes → Onboarding: routes to
- App routes → Authentication: routes to
- App routes → Main navigation: routes to
- Main navigation → Home browsing: presents
- Main navigation → Category browsing: presents
- Home browsing → Product details: opens products
- Category browsing → Product details: opens products
- Main navigation → Cart and checkout: presents
- Main navigation → Profile and favorites: presents
- App entry → Auth state: provides state
README.md - App entry → Cart state: provides state
README.md - App entry → Product state: provides state
README.md - Product state → Product model: manages products
- App entry → Design theme: sets theme
- Home browsing → Reusable widgets: reuses UI