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

Help #1

Closed
mrdaios opened this issue Oct 9, 2018 · 1 comment
Closed

Help #1

mrdaios opened this issue Oct 9, 2018 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@mrdaios
Copy link

mrdaios commented Oct 9, 2018

any this code?

static T of<T extends BlocBase>(BuildContext context){
    final type = _typeOf<BlocProvider<T>>();
    BlocProvider<T> provider = context.ancestorWidgetOfExactType(type);
    return provider.bloc;
  }

tks.

@felangel
Copy link
Owner

felangel commented Oct 10, 2018

Thanks I'm planning to add a BlocProvider in #6. Closing this for now.

@felangel felangel added the question Further information is requested label Oct 14, 2018
@felangel felangel self-assigned this Nov 25, 2018
@ghost ghost mentioned this issue Apr 16, 2019
felangel added a commit that referenced this issue Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants