Skip to content

Commit

Permalink
Make the first code snippets look more real
Browse files Browse the repository at this point in the history
  • Loading branch information
temeddix committed Jun 18, 2024
1 parent b157f17 commit 1a38f71
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ StreamBuilder(
final myMessage = rustSignal.message;
return Text(myMessage.currentNumber.toString());
},
)
),
```

```rust
MyMessage {
current_number: 7,
other_bool: true,
}
.send_signal_to_dart()
.send_signal_to_dart();
```

Of course, the opposite way from Dart to Rust is also possible in a similar manner.
Expand Down
4 changes: 2 additions & 2 deletions flutter_ffi_plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ StreamBuilder(
final myMessage = rustSignal.message;
return Text(myMessage.currentNumber.toString());
},
)
),
```

```rust
MyMessage {
current_number: 7,
other_bool: true,
}
.send_signal_to_dart()
.send_signal_to_dart();
```

Of course, the opposite way from Dart to Rust is also possible in a similar manner.
Expand Down
4 changes: 2 additions & 2 deletions rust_crate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ StreamBuilder(
final myMessage = rustSignal.message;
return Text(myMessage.currentNumber.toString());
},
)
),
```

```rust
MyMessage {
current_number: 7,
other_bool: true,
}
.send_signal_to_dart()
.send_signal_to_dart();
```

Of course, the opposite way from Dart to Rust is also possible in a similar manner.
Expand Down

0 comments on commit 1a38f71

Please sign in to comment.