subspace model

This commit is contained in:
hannathkadher
2025-01-05 11:45:05 +04:00
parent 944b981ee0
commit 90e5499f92
16 changed files with 346 additions and 148 deletions

View File

@ -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 =

View File

@ -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,