mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-09 17:39:35 +00:00
11 lines
312 B
Rust
11 lines
312 B
Rust
#[flutter_rust_bridge::frb(sync)] // Synchronous mode for simplicity of the demo
|
|
pub fn greet(name: String) -> String {
|
|
format!("Hello, {name}!")
|
|
}
|
|
|
|
#[flutter_rust_bridge::frb(init)]
|
|
pub fn init_app() {
|
|
// Default utilities - feel free to customize
|
|
flutter_rust_bridge::setup_default_user_utils();
|
|
}
|