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

How to run flutter preview on other device target? #7

Open
jamesblasco opened this issue Jul 19, 2020 · 0 comments
Open

How to run flutter preview on other device target? #7

jamesblasco opened this issue Jul 19, 2020 · 0 comments
Labels
question Further information is requested

Comments

@jamesblasco
Copy link
Owner

Flutter supports to run it on multiple platforms: Android Simulator, iOS Simulator, Web, macOS, Windows, and Linux.
You can choose the platform but the final goal would be to use desktop or web when they became stable.

To choose the device you need to tap the button right corner of VSCode and a dialog will display a list with your available devices

Why web doesn't appear?

Web is not stable and it is available only in beta, dev and master channels.
Before changing to another branch make sure you understand the implications of using a non-stable Flutter version in production

How to enable web for my project?

  • Change to a Flutter version that supports web
    -flutter channel beta
    -flutter upgrade
  • Enable flutter web
    -flutter config --enable-web
  • Add web folder to your flutter project
    - flutter create .

Read more at https://flutter.dev/docs/get-started/web

Why macOS, Windows or Linux doesn't appear?

Flutter Desktop is not stable and it is available only in dev and master channels.
Before changing to another branch make sure you understand the implications of using a non-stable Flutter version in production

How to enable Flutter Desktop for my project?

  • Change to a Flutter version that supports desktop
    -flutter channel dev
    -flutter upgrade
  • Enable flutter macOS, Windows or Linux
    -flutter config --enable-macos-desktop
    -flutter config --enable-linux-desktop
    -flutter config --enable-windows-desktop
  • Add web folder to your flutter project
    - `flutter create .

Read more at https://flutter.dev/desktop

@jamesblasco jamesblasco pinned this issue Jul 19, 2020
@jamesblasco jamesblasco added the question Further information is requested label Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant