MissingPluginException while using plugin for flutter

前端 未结 7 2145
忘掉有多难
忘掉有多难 2020-12-06 09:01

I am trying to use the plugin

_launchURL(url) async {
  await launch(\"www.google.com\");
}

I have put \"www.google.com\" just for debuggi

7条回答
  •  一向
    一向 (楼主)
    2020-12-06 09:30

    Had problem while using flutter toast dependency and dependencies like facebook_login. I followed these steps and resolved it:

    1. First, u need to test whether these toast and shared preference dependencies are causing problems or some other dependencies cause the problem.
    2. For testing that, u need to create a new seprate flutter project having the same flutter toast and shared preference dependency and check now if u r able to get toasts or not.
    3. If u r getting toast so there is no problem with ur toast dependency.
    4. The problem might be in ur one of the social media dependency.

    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.

提交回复
热议问题