8

Building a multithreaded Flutter + Rust App integrating both with Bloc/Cubit and...

 3 years ago
source link: https://www.youtube.com/watch?v=PGKBdxOA6Xs&t=1s
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Building a multithreaded Flutter + Rust App integrating both with Bloc/Cubit and Rid

647 views
Jun 26, 2021

Rid Homepage: http://thlorenz.github.io/rid-site/

Rid makes it easy to integrate Rust with Flutter via simple annotations. It provides an easy to use yet memory safe API to your Rust code which our cubits can leverage.

Todo App and Source: http://thlorenz.github.io/rid-site/do... Sponsor Rid Development: https://thlorenz.com/rid-site/docs/co... As streamed on twitch: https://www.twitch.tv/thlorenz

Chapters:

00:00:00 Intro 00:01:14 The app we are building 00:02:12 Walking though App interaction with Rust in memory safe manner 00:16:35 Explaining the Counter Rid Starter App 00:20:47 Adding the Store, Todo, Message and Reply in Rust 00:26:08 Implementing Store create and update in Rust 00:30:59 Adding a way to retrieve todos via an export from Rust 00:34:09 Why we use Bloc/Cubit for State Management 00:35:00 Building the Todo Cubit providing a Rid Todo 00:40:27 Building the Todos Cubit accessing filtered Todos 00:43:40 Rendering Todos in our Flutter Application 00:47:11 Dealing with different Todo States via the Todo Cubit BlocBuilder 00:51:10 Rendering the Todos inside a ListView.builder 00:55:56 Todo by id from Rust via a rid export from Option to Nullable 01:00:48 Toggling Todo Completion via a rid message and rendering Toggle State 01:05:54 Adding Setting to auto expire completed Todos 01:09:58 Expiring completed Todos on separate Rust Thread 01:24:23 Adding Settings Cubit and the Menu Drawer 01:33:05 Demonstrating helpful Errors when mesage Reply times out 01:39:08 Rendering Todo Expiry updates via the Rid replyChannel 01:53:34 Removing Expired Todos from the ListView 01:58:51 Rid Memory Safe API vs Rid raw API 02:03:20 Dismissing a Todo via User Action 02:12:08 Why Rid doesn't loose State during Hot Restarts 02:13:10 Making TodosCubit aware of removed Todos 02:16:14 Wrapping Up


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK