How sashourav/flutter-e-commerce works
Project type and purpose
• This is a cross-platform mobile e-commerce app (“t_store”) built in Flutter, targeting Android and iOS.
• The app provides user onboarding, authentication, personalized settings, shopping, and wishlist features.
File structure and architecture patterns
• Top-level platform folders:
• android/ – Native Android shell and configuration
• ios/ – Native iOS shell and configuration
• web/ – PWA/web stub (index.html, manifest.json)
• Dart code under lib/:
• lib/app.dart & lib/main.dart – Application entry point, root widget initialization
• lib/navigation_menu.dart – Central navigation/routing
• lib/common/ – Reusable widgets, styles, themes
• lib/features/ – Feature modules: authentication, personalization, shop
• lib/utils/ – Services and helpers: HTTP client, local storage, logging, formatting, exceptions, validators, theme configurations
• Testing under test/: widget/unit tests
Architectural choices:
• Feature-based modularization: each major feature in its own folder with controllers and screens
• Layered separation:
– Presentation (screens, widgets)
– Controllers (business logic/state management)
– Data/services (HTTP client, local storage, cloud helper functions)
• Utility layers for cross-cutting concerns (logging, theming, validation)