delivered qty issue on update gas refill

main_design2.0
zaid_daoud 2 years ago
parent 76f2623d5d
commit d5060d119f

@ -239,7 +239,11 @@ class _RequestGasRefillState extends State<RequestGasRefill> {
},
textInputType: TextInputType.number,
controller: _deliveredQuantityController,
validator: (value) => Validator.isNumeric(value) ? null : "allow numbers only",
validator: (value) => value == null || value.isEmpty
? context.translation.requiredField
: Validator.isNumeric(value)
? null
: context.translation.onlyNumbers,
),
8.height,

Loading…
Cancel
Save