r/rust • • Jun 06 '21

Introducing NativeShell for Flutter

https://matejknopp.com/post/introducing-nativeshell/
168 Upvotes

16 comments sorted by

6

u/colelawr Jun 06 '21

Sorry this is off-topic, but Airflow looks awesome! Are you using Rust for many parts of the streaming?

9

u/airflow_matt Jun 06 '21

I don't. Airflow is all C++. Though if I were to start again, I'd most certainly go with Rust.

4

u/colelawr Jun 06 '21

This is totally rad! I would love to have a future writing Rust for my business logic with Flutter for my UI. I wish you much success with this project!

3

u/airflow_matt Jun 06 '21

Thank you! That's exactly my take on it. Flutter is great of building user interfaces, more productive than anything else I've tried, but I wouldn't exactly want to write a video processing pipeline in Dart :)

27

u/dochtman rustls · Hickory DNS · Quinn · chrono · indicatif · instant-acme Jun 06 '21

This looks very cool! I have been wondering about building Flutter apps in Rust without any Dart code. I found flutter-rs, but it doesn’t seem to get much development. This seems like a cool building block for the desktop side of things, but I was more interested in Android/iOS.

1

u/SpecialistServe3974 Oct 05 '26

1

u/airflow_matt Oct 05 '26

What's the point of forking the whole flutter for this rather than build against the embedder api?

1

u/SpecialistServe3974 Oct 05 '26

embedder api is limited..

1

u/airflow_matt Oct 05 '26

In what way exactly? There is work being done on android embedder moving to embedder API, and some preliminary work on the iOS embedder as well. All desktop (and most third party) embedders are working with embedder API. What do you miss there?

1

u/SpecialistServe3974 Oct 05 '26

I'v seen these https://github.com/flutter/flutter/issues?q=is%3Aissue+state%3Aopen+embedder+vk and decided to go the fork way.. I wanted to use vk.

thats new to me that the desktop shells use the embedder api 🤔 I'll might migrate later

1

u/sebzim4500 Jun 08 '21

I've never used flutter, but this looks very cool. Is there some way to get hot code reloading of the dart code with this? That looked like the killer feature of flutter when I saw a demo.

2

u/airflow_matt Jun 08 '21

Hot reload works of course :) Once the app starts (cargo run), you can attach dart debugger to it (there's VSCode launch config for it that does that) which enables dart debugging and hot reload.

1

u/sebzim4500 Jun 08 '21

Awesome, I'll have to give this a try over the weekend. I've tried some of the other rust UI solutions but I got too frustrated by how long it takes to preview small ui tweaks.

2

u/beefstake Jun 06 '21

I have never built any desktop applications but this seems basically perfect.

I have been curious about building my own video streaming player for a while, how hard do you think it would be to embed a media player widget for streaming HLS streams in this?

2

u/sabitmaulanaa Jun 07 '21

Wow, this is amazing!

1

u/ICosplayLinkNotZelda Jun 07 '21

Does airflow support display streaming as well? Like, can I share my iPad display and stream it to a device/PC?