How rainulrafi/shoplite works
Shoplite is a Flutter shopping app. Its tree indicates a customer workflow spanning product discovery and detail, sign-in, wishlist, and account tasks such as managing addresses, profile, and settings. The feature directories also show API-backed auth and product data, plus local SQLite repositories for several account-related domains. The Flutter implementation was not excerpted and the README is only a starter template, so the dashed links below represent likely wiring inferred from names and structure, not verified calls.
Main entry points: app_shell.dart App shell · product_list_screen.dart Product listings · api_product_repository.dart Product API · app_database.dart Local database
Components 24
App shell
- Flutter entry
lib/main.dart - App shell
lib/features/shell/app_shell.dart
Shopping
- Product listings
lib/features/products/presentation/product_list_screen.dart - Listing state
lib/features/products/presentation/product_list_provider.dart - Product detail
lib/features/products/presentation/product_detail_screen.dart - Detail state
lib/features/products/presentation/product_detail_provider.dart - Product API
lib/features/products/data/api_product_repository.dart - Product data
lib/features/products/data/product.dart - Wishlist
lib/features/wishlist/presentation/wishlist_screen.dart - Wishlist state
lib/features/wishlist/presentation/wishlist_provider.dart - Wishlist storage
lib/features/wishlist/data/sqlite_wishlist_repository.dart
Identity
- Login
lib/features/auth/presentation/login_screen.dart - Auth state
lib/features/auth/presentation/auth_provider.dart - Auth API
lib/features/auth/data/api_auth_repository.dart
Account
- Addresses
lib/features/addresses/presentation/addresses_screen.dart - Address storage
lib/features/addresses/data/sqlite_address_repository.dart - Profile editing
lib/features/profile/presentation/edit_profile_screen.dart - Profile storage
lib/features/profile/data/sqlite_profile_repository.dart - Settings
lib/features/settings/presentation/settings_provider.dart - Settings storage
lib/features/settings/data/sqlite_settings_repository.dart
Shared services
- API client
lib/core/network/api_client.dart - Token storage
lib/core/storage/secure_token_store.dart - Local database
lib/core/database/app_database.dart
Other components
- Customer
Connections 29
- Customer → Flutter entry: opens app
- Flutter entry → App shell: starts
- App shell → Product listings: shows
- Customer → Product listings: browses
- Product listings → Listing state: uses state
- Listing state → Product API: loads products
- Product API → API client: uses client
- Product listings → Product detail: opens item
- Product detail → Detail state: uses state
- Detail state → Product API: loads product
- Product API → Product data: provides data
- App shell → Wishlist: shows
- Wishlist → Wishlist state: uses state
- Wishlist state → Wishlist storage: persists items
- Customer → Login: signs in
- Login → Auth state: uses state
- Auth state → Auth API: authenticates
- Auth API → API client: uses client
- Auth state → Token storage: stores tokens
- App shell → Addresses: shows
- Addresses → Address storage: persists addresses
- App shell → Profile editing: shows
- Profile editing → Profile storage: persists profile
- App shell → Settings: shows
- Settings → Settings storage: persists settings
- Wishlist storage → Local database: uses database
- Address storage → Local database: uses database
- Profile storage → Local database: uses database
- Settings storage → Local database: uses database