Fetch devices based on selection

This commit is contained in:
Abdullah Alassaf
2025-02-03 11:15:36 +03:00
parent 5ae07688cb
commit 506531e16a
9 changed files with 49 additions and 22 deletions

View File

@ -6,8 +6,8 @@ import 'package:syncrow_web/pages/spaces_management/all_spaces/model/space_model
import 'package:syncrow_web/services/space_mana_api.dart';
class SpaceTreeBloc extends Bloc<SpaceTreeEvent, SpaceTreeState> {
String selectedCommunityId = '';
String selectedSpaceId = '';
String selectedCommunityId = '9cb9da1f-adbe-4688-bf55-29e7584007a7';
String selectedSpaceId = '68dd94cf-0240-4ccf-8c26-df506246a0dd';
SpaceTreeBloc() : super(const SpaceTreeState()) {
on<InitialEvent>(_fetchSpaces);