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

Is there any official package with widgets for flutter? Like the stream builder or similars? #754

Open
MiniSuperDev opened this issue May 1, 2024 · 3 comments · May be fixed by #759
Open
Assignees
Labels

Comments

@MiniSuperDev
Copy link

Hi

Widgets like Consumer, Listener, Builder` mostly for behavior subjects that can have a sync value.

Thanks

@hoc081098
Copy link
Collaborator

Currently, there is no official package 🙏.
But you can use my RxStreamBuilder class in flutter_bloc_pattern package

final stateStream = BehaviorSubject.seeded(1);
RxStreamBuilder<State>(
  stream: stateStream,
  builder: (context, State state) {
    // use state directly
  }
)

@MiniSuperDev
Copy link
Author

@hoc081098
Great, although it would be nice if there was something official and agnostic to the bloc pattern, cause it is also used a lot in Flutter.

For example, a complementary .watch and .listen for flutter just like signals do.

Thanks

@hoc081098
Copy link
Collaborator

hoc081098 commented May 7, 2024

@MiniSuperDev I will consider adding an official package

@hoc081098 hoc081098 self-assigned this May 11, 2024
@hoc081098 hoc081098 linked a pull request May 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants