Another thing, if you're having issues with dependencies, and if you're using Visual Studio Code.
Try to check the OUTPUT tab right next to PROBLEMS (or you can using shortcut commands: Ctrl+Shift+U) There are information about plugins' version you've been using, whether they're compatible with each other or not. It will update the information after you execute,
flutter pub get
It is useful for me to understand the compatibility between my project and the plugins dependencies itself.