almost working
This commit is contained in:
parent
97a7c43a93
commit
58ef623f7c
7 changed files with 130 additions and 118 deletions
|
|
@ -1,12 +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>>> {
|
||||
class WorkspacesController extends StreamNotifier<List<List<WorkspaceDto>>> {
|
||||
@override
|
||||
Stream<List<List<Workspace>>> build() => listenWorkspaces();
|
||||
Stream<List<List<WorkspaceDto>>> build() => listenWorkspaces();
|
||||
|
||||
static final provider =
|
||||
StreamNotifierProvider<WorkspacesController, List<List<Workspace>>>(
|
||||
StreamNotifierProvider<WorkspacesController, List<List<WorkspaceDto>>>(
|
||||
WorkspacesController.new,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class Bar extends ConsumerWidget {
|
|||
children: group
|
||||
.map(
|
||||
(workspace) => IconButton(
|
||||
onPressed: () {},
|
||||
onPressed: () => workspace.activate(),
|
||||
icon: Icon(
|
||||
workspace.activated
|
||||
? Icons.circle
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue