I am trying to use the plugin
_launchURL(url) async {
await launch(\"www.google.com\");
}
I have put \"www.google.com\" just for debuggi
Had problem while using flutter toast dependency and dependencies like facebook_login. I followed these steps and resolved it:
In my case, I followed the above steps and found that problem was in facebook dependency. Finally, I found that I did not provide details of my app at facebook developer console. So implemented that and my app was fine.
In my case it was for the cached_network_image plugin , I have removed cached_network_image from pubspec.yaml and replaced the implementation with Image.network and the problem has disappeared
In my case, I had this problem with the image picker, then I followed the documentation and used an emulator with api 29+, it didn't work before because I was using an emulator with api 28 https://pub.dev/packages/image_picker
fear not, this is normal. For me it happens every time I add a new plugin to my Flutter project, and then forget to stop my application and restart it. Either that, or you might be working from the command line and forgot to run flutter pub get.
Usually what happens in workflow is:
flutter run
.flutter pub get
for me.r
or R
on the flutter run screen to reload the app.flutter run
process and restart it:So again, this Flutter error message usually isn’t a big deal, it just means you’ve forgotten/missed something in this process.
Solution is
Stop the flutter run process and start it up again restart within flutter run
flutter clean
Inside the console did the job as stated here
Simply Run these commands..
either--
Flutter clean
or
Invalidate Caches/Restart