mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-11-26 10:14:56 +00:00
fixed ok button
This commit is contained in:
@ -167,7 +167,8 @@ class CreateSpaceModelDialog extends StatelessWidget {
|
|||||||
onPressed: ((state.errorMessage != null &&
|
onPressed: ((state.errorMessage != null &&
|
||||||
state.errorMessage != '') ||
|
state.errorMessage != '') ||
|
||||||
!isNameValid)
|
!isNameValid)
|
||||||
? () {
|
? null
|
||||||
|
: () {
|
||||||
final updatedSpaceTemplate =
|
final updatedSpaceTemplate =
|
||||||
updatedSpaceModel.copyWith(
|
updatedSpaceModel.copyWith(
|
||||||
modelName:
|
modelName:
|
||||||
@ -240,8 +241,7 @@ class CreateSpaceModelDialog extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
: null,
|
|
||||||
backgroundColor: ColorsManager.secondaryColor,
|
backgroundColor: ColorsManager.secondaryColor,
|
||||||
borderRadius: 10,
|
borderRadius: 10,
|
||||||
foregroundColor: ((state.errorMessage != null &&
|
foregroundColor: ((state.errorMessage != null &&
|
||||||
|
|||||||
Reference in New Issue
Block a user