fixed ok button

This commit is contained in:
hannathkadher
2025-01-29 11:40:53 +04:00
parent 4bae7bb9fb
commit e4262d08a5

View File

@ -167,7 +167,8 @@ class CreateSpaceModelDialog extends StatelessWidget {
onPressed: ((state.errorMessage != null &&
state.errorMessage != '') ||
!isNameValid)
? () {
? null
: () {
final updatedSpaceTemplate =
updatedSpaceModel.copyWith(
modelName:
@ -240,8 +241,7 @@ class CreateSpaceModelDialog extends StatelessWidget {
}
}
}
}
: null,
},
backgroundColor: ColorsManager.secondaryColor,
borderRadius: 10,
foregroundColor: ((state.errorMessage != null &&