Crates.io | flutter-engine |
lib.rs | flutter-engine |
version | 0.3.5 |
source | src |
created_at | 2018-12-23 22:59:12.264753 |
updated_at | 2019-10-09 05:52:12.146573 |
description | Flutter engine embedder in rust |
homepage | |
repository | https://github.com/gliheng/flutter-rs |
max_upload_size | |
id | 103539 |
size | 177,868 |
flutter-engine is a library to make desktop apps in flutter and rust
const ASSETS_PATH: &str = "../build/flutter_assets";
const ICU_DATA_PATH: &str = "./assets/icudtl.dat";
fn main() {
let mut engine = flutter_engine::init().unwrap();
engine
.create_window(
&flutter_engine::WindowArgs {
height: 1200,
width: 1800,
title: "Flutter App Demo",
mode: flutter_engine::WindowMode::Windowed,
bg_color: (255, 255, 255),
},
ASSETS_PATH.to_string(),
ICU_DATA_PATH.to_string(),
vec![],
)
.unwrap();
engine.run_window_loop(None, None);
}
Check this out for a runable demo.