Skip to content

Is it possible to write flutter plugins in rust? #2487

Answered by nrbnlulu
nrbnlulu asked this question in Q&A
Discussion options

You must be logged in to vote

Ah I finally managed to display something

As you can see I am really a professional png renderer 😄

Turns out you should create textures on the main platform thread (as mentioned)
and iron dash provides just that (run_in_main_thread(|| {}) thing).
So to sum up, if you need to create textures in rust (via frb) it is generally possible, (currently via Irondash).

Though I don't feel comfortable relaying on irondash (due to its no docs / unknown maintanance status), maybe in the future I'll give a try with cxx crate.
code here https://github.com/nrbnlulu/my_app

Replies: 1 comment 11 replies

Comment options

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

@nrbnlulu
Comment options

@fzyzcjy
Comment options

@nrbnlulu
Comment options

Answer selected by nrbnlulu
@nrbnlulu
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