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

[Feature request] Add support for Web platform for HydratedBloc #1548

Closed
no1seman opened this issue Jul 29, 2020 · 1 comment · Fixed by #1574
Closed

[Feature request] Add support for Web platform for HydratedBloc #1548

no1seman opened this issue Jul 29, 2020 · 1 comment · Fixed by #1574
Assignees
Labels
pkg:hydrated_bloc This issue is related to the hydrated_bloc package question Further information is requested

Comments

@no1seman
Copy link

Hi,

since Flutter for Web is in beta state it would be great to add support for persistent BLOC's for Web applications.
It's quite easy to make custom Storage via plugin, but threre is a problem: Storage() class .read() method has 'dynamic' return type and it's synchronous while MethodChannel() class .invokeMethod() method has Future return type and it's asynchronous so it's a little bit tricky to syncronyze sync and async code.

Thanks in advance.

@felangel felangel self-assigned this Aug 4, 2020
@felangel felangel added pkg:hydrated_bloc This issue is related to the hydrated_bloc package question Further information is requested labels Aug 4, 2020
@felangel
Copy link
Owner

felangel commented Aug 5, 2020

Hi @no1seman 👋
Thanks for opening an issue!

hydrated_bloc v6.0.1 has flutter_web support 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:hydrated_bloc This issue is related to the hydrated_bloc package question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants