flutter-engine

Crates.ioflutter-engine
lib.rsflutter-engine
version0.3.5
sourcesrc
created_at2018-12-23 22:59:12.264753
updated_at2019-10-09 05:52:12.146573
descriptionFlutter engine embedder in rust
homepage
repositoryhttps://github.com/gliheng/flutter-rs
max_upload_size
id103539
size177,868
Chandler Newman (csnewman)

documentation

README

flutter-engine is a library to make desktop apps in flutter and rust

flutter-engine in action

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);
}

demo

Check this out for a runable demo.

Commit count: 477

cargo fmt