|
|
|
@ -78,7 +78,7 @@ class _PartNoButtonState extends State<PartNoButton> {
|
|
|
|
labelText: context.translation.quantity,
|
|
|
|
labelText: context.translation.quantity,
|
|
|
|
textInputType: TextInputType.number,
|
|
|
|
textInputType: TextInputType.number,
|
|
|
|
backgroundColor: context.isDark ? AppColor.neutral20 : AppColor.neutral30,
|
|
|
|
backgroundColor: context.isDark ? AppColor.neutral20 : AppColor.neutral30,
|
|
|
|
enable: current != null,
|
|
|
|
enable: current != null && current.sparePart?.id != null,
|
|
|
|
validator: (value) => value == null || value.isEmpty
|
|
|
|
validator: (value) => value == null || value.isEmpty
|
|
|
|
? context.translation.requiredField
|
|
|
|
? context.translation.requiredField
|
|
|
|
: Validator.isNumeric(value)
|
|
|
|
: Validator.isNumeric(value)
|
|
|
|
|