Actually I did wrap the MaterialApp inside a ChangeNotifierProvider widget in the lib/main.dart file. We do not need to use MultiProvider because we are only using a single Provider in our app.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi there! Thanks for this tutorial. Don't you forget to add the provider in the main.dart file?
I had an "could not find the correct provider above this Consumer Widget" until I wrapped my
HomeScreen
in anMultiProvider
widget:EDIT: it looks like you did that on the add toto page. But you should do it earlier as the empty list wont work until you add the provider ;)
Glad that you liked the tutorial.
Actually I did wrap the
MaterialApp
inside aChangeNotifierProvider
widget in thelib/main.dart
file. We do not need to useMultiProvider
because we are only using a singleProvider
in our app.