Skip to content
Discussion options

You must be logged in to vote

Oh yes, the doc is a bit stale given that so many new features and new tutorials are added since it was created... Feel free to PR to fix it!

If you like build.rs, https://cjycode.com/flutter_rust_bridge/feature/build_rs.html and https://github.com/fzyzcjy/flutter_rust_bridge/blob/master/frb_example/pure_dart_multi/rust/build.rs (yes I know it is not with_flutter example...).

However, I am not sure whether build.rs is the best way for a Flutter app. You know, the codegen (invoked by build.rs or manually) generates Dart code, and if you run Flutter build which executes build.rs which generates Dart code, you will not get the new Dart code before Flutter build happens, so it may use the old…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@fzyzcjy
Comment options

Comment options

You must be logged in to vote
3 replies
@fzyzcjy
Comment options

Answer selected by dragonnn
@dragonnn
Comment options

@fzyzcjy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants