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

Using context.dependOnInheritedWidgetOfExactType instead context.inheritFromWidgetOfExactType #295

Closed

Conversation

kranfix
Copy link
Contributor

@kranfix kranfix commented Dec 21, 2019

Provider use _DelegateElement and every custom element must have the same api of Element, then the following actions were done:

  • Updated _DelegateElement deprecating inheritFromElement in favor of inheritFromElement.
  • Updated static Provider.of
final provider = listen
        ? context.dependOnInheritedWidgetOfExactType<InheritedProvider<T>>()
        : context
            .getElementForInheritedWidgetOfExactType<InheritedProvider<T>>()
            ?.widget as InheritedProvider<T>;

@rrousselGit
Copy link
Owner

Hello!

I appreciate the work, but this is fixed by #243 already, which will be released this weekend

@kranfix kranfix deleted the dependOnInheritedWidgetOfExactType branch February 18, 2020 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants