Skip to content

Commit

Permalink
fix:(flutter) replace depracated inheritFromWidgetOfExactType
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Dec 12, 2019
1 parent a322339 commit f7b99ba
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ class _InheritedGraphQLProvider extends InheritedWidget {
super(child: child);

factory _InheritedGraphQLProvider.of(BuildContext context) =>
context.inheritFromWidgetOfExactType(_InheritedGraphQLProvider)
as _InheritedGraphQLProvider;
context.dependOnInheritedWidgetOfExactType<_InheritedGraphQLProvider>();

final ValueNotifier<GraphQLClient> client;
final GraphQLClient clientValue;
Expand Down

0 comments on commit f7b99ba

Please sign in to comment.