working workspaces
This commit is contained in:
parent
6a6a6b8f86
commit
30af165d02
54 changed files with 5065 additions and 158 deletions
12
lib/controllers/workspaces_controller.dart
Normal file
12
lib/controllers/workspaces_controller.dart
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import "package:flight/src/rust/api/workspace_api.dart";
|
||||
import "package:flutter_riverpod/flutter_riverpod.dart";
|
||||
|
||||
class WorkspacesController extends StreamNotifier<List<List<Workspace>>> {
|
||||
@override
|
||||
Stream<List<List<Workspace>>> build() => listenWorkspaces();
|
||||
|
||||
static final provider =
|
||||
StreamNotifierProvider<WorkspacesController, List<List<Workspace>>>(
|
||||
WorkspacesController.new,
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue