Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Fix: flutter 2 makes BuildContext generic method breaking change #151

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hiwangzi
Copy link

@hiwangzi hiwangzi commented Apr 16, 2021

Flutter had made the BuildContext method inheritFromWidgetOfExactType generic. Instead dependOnInheritedWidgetOfExactType method should be used.

It's a breaking change in flutter 2.

Fix: #147

Reference: flutter/flutter#44189

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

升级 2.0 出问题
1 participant