Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLoC design pattern #2374

Open
iluwatar opened this issue Dec 2, 2022 · 6 comments · May be fixed by #3128
Open

BLoC design pattern #2374

iluwatar opened this issue Dec 2, 2022 · 6 comments · May be fixed by #3128

Comments

@iluwatar
Copy link
Owner

iluwatar commented Dec 2, 2022

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:

  1. Event: Represents the actions taken by the user or system.
  2. State: Represents the state of the UI at any point in time.
  3. Bloc: Handles the business logic, receives events, processes them, and emits new states.

References

Acceptance Criteria

  1. Implement a basic BloC pattern structure including Event, State, and Bloc classes.
  2. Provide a simple example demonstrating the pattern in action.
  3. Ensure the implementation follows the project contribution guidelines outlined here.
@girolamo-giordano
Copy link
Contributor

Hi @iluwatar can you assign the issue to me?

@stale
Copy link

stale bot commented Feb 17, 2023

This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status: stale issues and pull requests that have not had recent interaction label Feb 17, 2023
@stale stale bot removed the status: stale issues and pull requests that have not had recent interaction label May 20, 2023
@stale
Copy link

stale bot commented Jul 19, 2023

This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status: stale issues and pull requests that have not had recent interaction label Jul 19, 2023
@iluwatar iluwatar moved this from In Progress to Todo in Java Design Patterns project Mar 24, 2024
@stale stale bot removed the status: stale issues and pull requests that have not had recent interaction label May 31, 2024
@darkhyper24
Copy link

hi @iluwatar can you please assign the issue to me?

@itsamekadio
Copy link

hi @iluwatar can u please assign the issue to me?

@unminnn
Copy link

unminnn commented Nov 29, 2024

@iluwatar can you assign me this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

5 participants