#flutter #GUI

flutter-engine

Flutter engine embedder in rust

11 releases

✓ Uses Rust 2018 edition

0.3.5 Oct 9, 2019
0.3.4 Aug 14, 2019
0.3.3 Jun 13, 2019
0.3.2 May 20, 2019
0.1.1 Dec 24, 2018

#141 in GUI

Download history 85/week @ 2019-06-26 57/week @ 2019-07-03 37/week @ 2019-07-10 15/week @ 2019-07-17 19/week @ 2019-07-24 40/week @ 2019-07-31 34/week @ 2019-08-07 17/week @ 2019-08-14 53/week @ 2019-08-21 55/week @ 2019-08-28 47/week @ 2019-09-04 25/week @ 2019-09-11 78/week @ 2019-09-18 36/week @ 2019-09-25 27/week @ 2019-10-02

159 downloads per month
Used in 1 crate

MIT license

180KB
4.5K SLoC

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.

Dependencies

~5.5–9.5MB
~209K SLoC