Skip to content

m3y54m/flutter-desktop-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Flutter Desktop App for Linux

A getting started project for desktop application development using Flutter

Flutter Installation on Linux

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

Create a Flutter App

flutter create sample_app
cd sample_app

Desktop Version

Run in Debug Mode

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

Build the Release

flutter build linux

Run the Release

Supposed that you built the app for x86_64.

./build/linux/x64/release/bundle/sample_app 

Web Version

Just for comparison with desktop release.

Build and Run

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

About

A getting started project for desktop application development using Flutter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published