-
-
Notifications
You must be signed in to change notification settings - Fork 27.3k
Closed
Description
Description
The BloC (Business Logic Component) design pattern helps separate business logic from UI components, making applications more modular, testable, and maintainable. This pattern is widely used in Flutter development and involves three main components: Event, State, and Bloc. Events are dispatched by the UI, which are processed by the Bloc to produce new States that the UI listens to and reacts accordingly.
The key elements of the BloC pattern are:
- Event: Represents the actions taken by the user or system.
- State: Represents the state of the UI at any point in time.
- Bloc: Handles the business logic, receives events, processes them, and emits new states.
References
- Flutter Clutter - What is the BloC Pattern?
- Medium - Building Basic Flutter App with BloC Pattern
- Kodeco - Getting Started with the BloC Pattern
- Mitrais - Getting Started with Flutter BloC Pattern
Acceptance Criteria
- Implement a basic BloC pattern structure including Event, State, and Bloc classes.
- Provide a simple example demonstrating the pattern in action.
- Ensure the implementation follows the project contribution guidelines outlined here.
Metadata
Metadata
Assignees
Projects
Status
Done