How dabbeshu/mini_ecommerce works
Project type and purpose
• This is a cross-platform Flutter “mini e-commerce” client application (mobile, web, desktop).
• Purpose: Allow a user to log in, fetch a product list from a remote API, view product details, and maintain session between launches.
File structure
• Top-level “android”, “ios”, “web”, “linux”, “windows” folders: each contains the native runner and engine integration for that platform.
• “lib/” folder holds the Dart application code, subdivided into:
• models/ – Product data classes
• controllers/ – Business logic (ProductController, login/logout)
• views/ – UI screens (login_screen, product_list_screen, product_detail_screen)
• main.dart – app entry point
• “pubspec.yaml” lists dependencies: http, provider, shared_preferences.
• No built-in backend in this repo; it consumes an external HTTP API.
README for additional insights
• Confirms usage of “http” for API requests, “provider” for state management, “shared_preferences” for persisting login.
• Basic run instructions, credentials, and package list.