A sample project demonstrating how to integrate ark-rs with Flutter using flutter-rust-bridge. This project serves as a reference implementation for building an Ark Wallet using Flutter and Rust.
- Ark wallet functionality
- Cross-platform support (iOS/Android)
- Rust backend for performance and security
- Flutter SDK (latest stable version)
- Rust toolchain
- iOS Simulator or Android Emulator
- flutter-rust-bridge
-
Clone the repository:
git clone https://github.com/ArkLabsHQ/ark-flutter-sample.git cd ark-flutter-sample
-
Install dependencies:
flutter pub get
-
Generate Flutter-Rust bindings:
just ffi-build
-
Create a copy of
.env_sample
and call it.env
. Adjust the variables if necessary -
Build for your target platform
just ios-build
just android-build
- Run the app:
flutter run
When making changes to the Rust code:
-
Regenerate the Flutter bindings:
flutter_rust_bridge_codegen generate --watch
-
Restart the Flutter app:
flutter run
Note: Hot-reload/hot-restart is not currently supported for Rust code changes.
lib/
- Flutter/Dart coderust/
- Rust code