Fix generic type placement of Provider.of call (#661)

pull/663/head
Robert Piosik 4 years ago committed by GitHub
parent f96272db20
commit f3de46714b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -77,7 +77,7 @@ class MyHomePage extends StatelessWidget {
floatingActionButton: FloatingActionButton(
onPressed: () {
// You can access your providers anywhere you have access
// to the context. One way is to use Provider<Counter>.of(context).
// to the context. One way is to use Provider.of<Counter>(context).
//
// The provider package also defines extension methods on context
// itself. You can call context.watch<Counter>() in a build method

Loading…
Cancel
Save