This is a counter app build in flutter the implementation coming from rust. It uses dart:ffi library to call functions in rust, and uses the flutter_rust_bridge package.
https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU64.html http://cjycode.com/flutter_rust_bridge/tutorial_with_flutter.html https://github.com/Desdaemon/flutter_rust_bridge_template https://github.com/fzyzcjy/flutter_rust_bridge/tree/master/frb_example/with_flutter
flutter run
flutter_rust_bridge_codegen --rust-input rust/src/api.rs --dart-output lib/bridge_generated.dart