mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
fixed ok button
This commit is contained in:
@ -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 &&
|
||||
|
Reference in New Issue
Block a user