dwyl / learn-rust

:bowtie: learn rust-lang to build systems.
GNU General Public License v2.0
11 stars 1 forks source link

How to integrate `Flutter` and `Rust` with `flutter_rust_bridge` #17

Open nelsonic opened 1 year ago

nelsonic commented 1 year ago

Not saying we're going to use this. πŸ’­ But ... the fact that it exists is reassuring [to me] as a someone considering using a certain technology. πŸ‘Œ

https://pub.dev/packages/flutter_rust_bridge

image image

How to integrate Flutter and Rust with flutter_rust_bridge: https://youtu.be/oRahosxToxA

image

If we can offload certain function calls to Rust without a perf penalty, then we should do that! It means we can write our own SDK in Rust and use it in our Flutter App. Not that we don't want to write Dart, and for things like layout/positioning, transitions and other things Dart/Flutter does well, we will just use the appropriate Dart/Flutter widget. But Imagine there was an advanced NewSQL Database that had an incredible relational/graph query language and document storage and could be embedded: https://github.com/surrealdb/surrealdb/discussions/1275 if we could Embed SurrealDB (written in Rust) directly in our Flutter App Native Mobile App, then the queries in the App could be the same on both front and backend. 🀯

nelsonic commented 1 year ago

https://www.rustwithflutter.com/ image