A getting started project for desktop application development using Flutter
There is no need to install Android or iOS SDK if you want to just build it for Linux Desktop.
https://flutter.dev/docs/get-started/install/linux#linux-setup
flutter create sample_app
cd sample_app
flutter run
You can use flutter devices
command to see the list of available devices.
If you have multiple devices enabled for your app you can specifically run it for Linux desktop using this command:
flutter run -d linux
flutter build linux
Supposed that you built the app for x86_64.
./build/linux/x64/release/bundle/sample_app
Just for comparison with desktop release.
flutter build web
cd build/web
python -m http.server 8000
Open localhost:8000 in browser.
If you have Chrome browser installed, you can use just this command to run the web app in debug mode:
flutter run -d chrome