You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,9 @@
2
2
3
3
Thank you for your interest in contributing to flutter-rs! We have many areas that could use some help.
4
4
5
-
- Desktop intergration: We provide several methods to intergrate with native desktop UI, such as clipboard, dialog... but more is needed.
6
-
- Flutter Desktop GUI: Flutter is mainly for mobile. Desktop app need desktop widgets, such as context menu. Maybe a desktop app scarfold?
7
-
- Documentation is still lacking.
8
-
- Build intergration.
5
+
- Desktop intergration: We provide several plugins to intergrate with native desktop UI, such as clipboard, dialog... but more is needed.
6
+
- Flutter Desktop GUI: Flutter is mainly for mobile. Desktop app need desktop widgets, such as context menu.
7
+
- Documentation.
9
8
10
9
##Structure
11
10
This project is cargo workspace with multiple targets.
@@ -14,16 +13,17 @@ This project is cargo workspace with multiple targets.
14
13
15
14
When an engine instance is run, a`platform_message_callback` is pass to flutter engine using C ffi. A registry is also created to listen to flutter MethodChannel calls. Various plugins is registered with the registry using`add_plugin` method. Later, when flutter request native implementation using`MethodChannel`, the callback previously passed as`platform_message_callback` is called, which select one plugin in the registry to handle the message.
16
15
16
+
-`flutter-engine-sys` is the crate for ffi with flutter engine C apis. It generate bindings using bindgen automaticly.
17
+
17
18
-`flutter-app-demo` is a demo project that showcase various features of flutter-rs.
18
19
-`flutter-app-demo/lib`: Dart code to create demo UI.
19
20
-`flutter-app-demo/rust`: Rust code that uses flutter-engine to to start a flutter runtime.
21
+
20
22
-`flutter-download` is used by cargo to download libflutter at build time.
23
+
21
24
-`www` folder is various github website assets.
22
25
23
-
##Debugging
24
-
flutter-engine use`env_logger` to print logs. To see development logs, add environment variables when running`run.py`:`RUST_LOG=flutter_engine=trace,flutter_app_demo=trace ./scripts/run.py`