Skip to content

Build beautiful desktop apps with flutter and rust. 🌠

License

Notifications You must be signed in to change notification settings

dvc94ch/flutter-rs

 
 

Repository files navigation

flutter-rs

Appveyor status Travis status Crates.io flutter version Gitter chat MIT licensed

Build flutter desktop app in dart & rust.

demo ui

Install

  • Install Rust@^1.35.0
  • Python3
  • LLVM: required by rust-bindgen
  • Install additional requirements:
    • Mac: brew install glfw
    • linux: apt install libglfw3
    • ubuntu: apt install libglfw3 libglfw3-dev libxinerama-dev libxcursor-dev libxi-dev ; ln -s /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/libGL.so
    • Windows: cmake is required to build glfw on windows
  • Install flutter sdk
  • Set 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. This commit version id can be found in bin/internal/engine.version file in flutter sdk folder.

Run flutter-app-demo example

  • Install flutter-rs devtools with pip install psi-cli

  • Run psi run to get a running example with flutter cli debugger attached.

  • Run psi run --vscode then run Flutter-rs job in vscode debug panel to connect vscode.

  • Run psi build --release nsis|mac|dmg|snap to build distribution format

Features:

  • 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)

Contribution

To contribute to flutter-rs, please see CONTRIBUTING.

ChangeLog

CHANGELOG.

About

Build beautiful desktop apps with flutter and rust. 🌠

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 71.8%
  • C++ 28.2%