Bloc: BlocProvider from context

Created on 7 Nov 2020  路  4Comments  路  Source: felangel/bloc

The method bloc from BlocProvider has been deprecated and we should use watch or read instead. However, this changes have not been made in the documentation.

Is it because you will add the new functions in the 7.0.0 version? If not, should the documentation be updated? 馃

documentation question

Most helpful comment

That solved it 馃槄

All 4 comments

Hi @mikededo 馃憢
Thanks for opening an issue!

Can you please let me know what documentation hasn鈥檛 been updated? I tried to update all references and examples accordingly. Thanks! 馃檹

Sure.

Documentation image

I have not been much active with Flutter lately and when looking over an old project I found that context.bloc is deprecated. So I came to the docs and found this. Maybe I'm not looking in the right place.

I think maybe you are looking at a cached version. Can you try refreshing the page/clearing the cache?

That solved it 馃槄

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shawnchan2014 picture shawnchan2014  路  3Comments

Reidond picture Reidond  路  3Comments

komapeb picture komapeb  路  3Comments

craiglabenz picture craiglabenz  路  3Comments

krusek picture krusek  路  3Comments