Skip to content

Commit

Permalink
🔵 other: disable web
Browse files Browse the repository at this point in the history
  • Loading branch information
tom8zds committed Jul 5, 2024
1 parent 8a8a970 commit 34828b9
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 558 deletions.
1 change: 1 addition & 0 deletions flutter_rust_bridge.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
rust_input: crate::bridge
rust_root: rust/
dart_output: lib/core/rust
web: false
23 changes: 23 additions & 0 deletions lib/core/providers/mission_provider.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import 'package:localsend_rs/core/rust/actor/mission/pending.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';

import '../rust/actor/model.dart';
import '../rust/bridge.dart';

part 'mission_provider.g.dart';

@riverpod
class PendingMission extends _$PendingMission {
@override
PendingMissionDto build() {
final subPendingMission = listenPendingMission().listen(
(event) {
state = event;
},
);
ref.onDispose(() {
subPendingMission.cancel();
});
return const PendingMissionDto(state: MissionState.idle);
}
}
26 changes: 26 additions & 0 deletions lib/core/providers/mission_provider.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 34828b9

Please sign in to comment.