cleaned subspace model create

This commit is contained in:
hannathkadher
2025-01-15 10:22:42 +04:00
parent 0bb24604bc
commit 5975adb5e2
3 changed files with 34 additions and 111 deletions

View File

@ -108,14 +108,15 @@ class CreateSpaceModelDialog extends StatelessWidget {
),
),
const SizedBox(height: 16),
SubspaceModelCreate(context,
subspaces: state.space.subspaceModels ?? [],
onLoad:onLoad,
allTags: allTags,
products: products,
spaceModel: spaceModel,
spaceTagModels: spaceModel?.tags ?? [],
spaceNameController: spaceNameController,),
SubspaceModelCreate(
context,
subspaces: state.space.subspaceModels ?? [],
onSpaceModelUpdate: (updatedSubspaces) {
context
.read<CreateSpaceModelBloc>()
.add(AddSubspacesToSpaceTemplate(updatedSubspaces));
},
),
const SizedBox(height: 10),
TagChipDisplay(context,
screenWidth: screenWidth,