|
|
|
|
@ -90,6 +90,47 @@ class _VisitsSearchDialogState extends State<VisitsSearchDialog> with TickerProv
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8.0 * AppStyle.getScaleFactor(context),
|
|
|
|
|
),
|
|
|
|
|
ATextFormField(
|
|
|
|
|
initialValue: _search.deviceNumber,
|
|
|
|
|
hintText: _subtitle.assetNumber,
|
|
|
|
|
style: Theme.of(context).textTheme.headline6,
|
|
|
|
|
textInputAction: TextInputAction.search,
|
|
|
|
|
onAction: () {
|
|
|
|
|
if (!_formKey.currentState.validate()) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
_formKey.currentState.save();
|
|
|
|
|
Navigator.of(context).pop(_search);
|
|
|
|
|
},
|
|
|
|
|
onSaved: (value) {
|
|
|
|
|
_search.deviceNumber = value;
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8.0 * AppStyle.getScaleFactor(context),
|
|
|
|
|
),
|
|
|
|
|
ATextFormField(
|
|
|
|
|
initialValue: _search.deviceName,
|
|
|
|
|
hintText: _subtitle.assetName,
|
|
|
|
|
style: Theme.of(context).textTheme.headline6,
|
|
|
|
|
textInputAction: TextInputAction.search,
|
|
|
|
|
onAction: () {
|
|
|
|
|
if (!_formKey.currentState.validate()) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
_formKey.currentState.save();
|
|
|
|
|
Navigator.of(context).pop(_search);
|
|
|
|
|
},
|
|
|
|
|
onSaved: (value) {
|
|
|
|
|
_search.deviceName = value;
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8.0 * AppStyle.getScaleFactor(context),
|
|
|
|
|
),
|
|
|
|
|
ATextFormField(
|
|
|
|
|
initialValue: _search.deviceSerialNumber,
|
|
|
|
|
hintText: _subtitle.serialNumber,
|
|
|
|
|
|