Folder Structure
Sizzle Starter uses a feature-based structure, which is a popular approach for structuring large-scale applications. It’s a modular architecture that encapsulates related functionalities within self-contained modules.
General Folder Structure
Code in Sizzle Starter is organized into the following directories:
Core Directory
The core
directory is the heart of your application.
It houses utilities and configurations that provide functionality across multiple
features. Here are some examples:
- Mixins and Extensions: Commonly used functions or properties that can be mixed into classes.
- Rest Client: Standardized configurations and methods for API requests.
- Database: Database configurations and methods for data access.
- Localization: Language files and auto-generated translations.
- BLoC Observer: Debugging and monitoring tool for the BLoC pattern.
- Theme: Customizable theme data for the application.
- Assets: Static and generated asset files.
Feature Directory
The feature
directory houses all of the features in your application.
Each feature is a self-contained module that encapsulates its own logic and
widgets. It’s a modular architecture that allows you to easily add and
remove features.
Let’s take a look at the catalog
feature: