From 5f96149d60c4cbaddf6c05c928fb0cc58fbda5dc Mon Sep 17 00:00:00 2001 From: Gregory Cabral De Los Santos Date: Sat, 6 Mar 2021 10:21:39 -0400 Subject: [PATCH] chore(provider) Fixed deprecated method --- lib/provider.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/provider.dart b/lib/provider.dart index 21eb871..170fa5c 100644 --- a/lib/provider.dart +++ b/lib/provider.dart @@ -46,7 +46,7 @@ class Provider extends StatefulWidget { static T of(BuildContext context) { final type = _typeOf<_InheritedProvider>(); final _InheritedProvider provider = - context.inheritFromWidgetOfExactType(type); + context.dependOnInheritedWidgetOfExactType(aspect: type); if (provider == null) { throw ProviderNotFoundError(T, context.widget.runtimeType);