fixed subspace create

This commit is contained in:
hannathkadher
2025-01-15 09:39:26 +04:00
parent cf2690123e
commit 0bb24604bc
4 changed files with 38 additions and 32 deletions

View File

@ -21,18 +21,20 @@ class CreateSubSpaceModelDialog extends StatelessWidget {
final List<String>? allTags;
final List<ProductModel>? products;
final SpaceTemplateModel? spaceModel;
final void Function(SpaceTemplateModel newModel)? onLoad;
const CreateSubSpaceModelDialog({
Key? key,
required this.isEdit,
required this.dialogTitle,
this.existingSubSpaces,
required this.allTags,
required this.spaceName,
required this.spaceTagModels,
required this.products,
required this.spaceModel,
}) : super(key: key);
const CreateSubSpaceModelDialog(
{Key? key,
required this.isEdit,
required this.dialogTitle,
this.existingSubSpaces,
required this.allTags,
required this.spaceName,
required this.spaceTagModels,
required this.products,
required this.spaceModel,
this.onLoad})
: super(key: key);
@override
Widget build(BuildContext context) {
@ -176,6 +178,7 @@ class CreateSubSpaceModelDialog extends StatelessWidget {
CreateSpaceModelDialog(
products: products,
allTags: allTags,
onLoad: onLoad,
spaceModel: SpaceTemplateModel(
modelName: spaceName ?? '',
subspaceModels: existingSubSpaces,
@ -203,6 +206,7 @@ class CreateSubSpaceModelDialog extends StatelessWidget {
CreateSpaceModelDialog(
products: products,
allTags: allTags,
onLoad: onLoad,
spaceModel: SpaceTemplateModel(
modelName: spaceName ?? '',
subspaceModels: subSpaces,