mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-15 01:35:25 +00:00
subspace model
This commit is contained in:
@ -329,6 +329,7 @@ class SpaceManagementBloc
|
||||
Emitter<SpaceManagementState> emit,
|
||||
) {
|
||||
final communities = List<CommunityModel>.from(previousState.communities);
|
||||
|
||||
|
||||
for (var community in communities) {
|
||||
if (community.uuid == communityUuid) {
|
||||
@ -425,7 +426,7 @@ class SpaceManagementBloc
|
||||
emit(SpaceManagementLoading());
|
||||
try {
|
||||
List<CommunityModel> communities = await _api.fetchCommunities();
|
||||
|
||||
|
||||
List<CommunityModel> updatedCommunities = await Future.wait(
|
||||
communities.map((community) async {
|
||||
List<SpaceModel> spaces =
|
||||
|
@ -48,7 +48,8 @@ class _LoadedStateViewState extends State<LoadedSpaceView> {
|
||||
hasSpaceModels
|
||||
? Expanded(
|
||||
child: SpaceModelPage(
|
||||
spaceModels: widget.spaceModels ??[],
|
||||
spaceModels: widget.spaceModels ?? [],
|
||||
products: widget.products,
|
||||
))
|
||||
: CommunityStructureArea(
|
||||
selectedCommunity: widget.selectedCommunity,
|
||||
|
Reference in New Issue
Block a user