https://github.com/gliheng/flutter-app-template
Desktop flutter app template
https://github.com/gliheng/flutter-app-template
desktop flutter rust
Last synced: about 1 year ago
JSON representation
Desktop flutter app template
- Host: GitHub
- URL: https://github.com/gliheng/flutter-app-template
- Owner: gliheng
- License: mit
- Created: 2018-12-24T05:20:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-29T07:39:14.000Z (almost 6 years ago)
- Last Synced: 2025-04-05T09:02:50.679Z (about 1 year ago)
- Topics: desktop, flutter, rust
- Language: Python
- Size: 679 KB
- Stars: 46
- Watchers: 3
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flutter-app-template [](https://gitter.im/flutter-rs/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Example app built using flutter-rs.


- Support Hot reload
- MethodChannel, EventChannel
- Async runtime using tokio
- System dialogs
- Clipboard support
- Cross platform support, Runs on mac, windows, linux
- Support distribution format: (windows NSIS, mac app, mac dmg, linux snap)
# Get Started
## Install requirements
- [Rust](https://www.rust-lang.org/tools/install)
- libglfw:
- Install on Mac with: `brew install glfw`
- Install on linux with `apt install libglfw3`
- cmake:
- Install on Mac with: `brew install cmake`
- Install on linux with `apt install cmake`
- [flutter sdk](https://flutter.io)
## Config flutter engine version
flutter-rs need to know your flutter engine version.
You can set this using any of the following methods.
- If you have flutter cli in your PATH, you're set.
- Set FLUTTER_ROOT environment variable to your flutter sdk path
- Set FLUTTER_ENGINE_VERSION environment variable to your engine version
## Clone this repo
git clone git@github.com:gliheng/flutter-app-template.git flutter-app
cd flutter-app
python ./scripts/init.py
## Develop
- To develop with cli hot-reloading, simple run:
`python ./scripts/run.py`
- To debug using VS Code dart tools:
Start process using `cargo run`
Then attach to debugger using
`flutter attach --debug-uri=DEBUG_URI`
## Distribute
- To build distribution, use:
`python ./scripts/build.py mac|dmg|nsis|snap`
**Note:**
Build scripts are written in python3. Install python depenendencies using `pip3 install -r scripts/requirements.txt`
Build on Windows require [NSIS3](https://sourceforge.net/projects/nsis/files/NSIS%203/)