Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import flutter_webview_plugin.dart in VSCode #221

Open
hemant1171 opened this issue Nov 1, 2018 · 4 comments
Open

Can't import flutter_webview_plugin.dart in VSCode #221

hemant1171 opened this issue Nov 1, 2018 · 4 comments

Comments

@hemant1171
Copy link

i have installed the required dependency for it but due to some reason , i am unable to import flutter_webview_plugin.dart in my flutter project. Does anyone have a good idea how to solve this problem?

@zoechi
Copy link

zoechi commented Nov 2, 2018

What have you tried?

@slightfoot
Copy link
Member

make sure you run flutter packages get after changing your pubspec.yaml to include the package.

@gorvinsky
Copy link

make sure you run flutter packages get after changing your pubspec.yaml to include the package.

I'm using VS Code and it seems that flutter packages get is auto ran when I changed the pubspec.yaml. But I did try to run again from Windows Powershell as you advised. The powershell terminal in VS Code cannot recognize flutter for some reason. Anyway, I still cannot import after running that.

@gorvinsky
Copy link

make sure you run flutter packages get after changing your pubspec.yaml to include the package.

I'm using VS Code and it seems that flutter packages get is auto ran when I changed the pubspec.yaml. But I did try to run again from Windows Powershell as you advised. The powershell terminal in VS Code cannot recognize flutter for some reason. Anyway, I still cannot import after running that.

I tried again today and now it works. I didn't change anything. It's possible that just by restarting VSCode fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants