format
This commit is contained in:
parent
56cb5427a2
commit
61e3effa59
|
@ -163,7 +163,6 @@ mixin class _BaseVehiclePage {
|
||||||
log('vehicleId: ${item['vehicleId']}');
|
log('vehicleId: ${item['vehicleId']}');
|
||||||
vehicleId = item['vehicleId'];
|
vehicleId = item['vehicleId'];
|
||||||
|
|
||||||
|
|
||||||
textFieldControllerLicensePlate = TextEditingController(
|
textFieldControllerLicensePlate = TextEditingController(
|
||||||
text: item != null ? item['licensePlate'] ?? '' : '');
|
text: item != null ? item['licensePlate'] ?? '' : '');
|
||||||
textFieldControllerColor =
|
textFieldControllerColor =
|
||||||
|
@ -320,10 +319,8 @@ mixin _VehicleHistoryScreenModel on _BaseVehiclePage {
|
||||||
context.pop();
|
context.pop();
|
||||||
isEditing = true;
|
isEditing = true;
|
||||||
|
|
||||||
|
|
||||||
await switchTab(1);
|
await switchTab(1);
|
||||||
await setEditForm(item);
|
await setEditForm(item);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
final cancelText = FFLocalizations.of(context)
|
final cancelText = FFLocalizations.of(context)
|
||||||
|
|
|
@ -72,7 +72,8 @@ class _VehicleRegisterScreenState extends State<VehicleRegisterScreen> {
|
||||||
child: SubmitButtonUtil(
|
child: SubmitButtonUtil(
|
||||||
labelText: FFLocalizations.of(context)
|
labelText: FFLocalizations.of(context)
|
||||||
.getVariableText(ptText: 'Cadastrar', enText: 'Register'),
|
.getVariableText(ptText: 'Cadastrar', enText: 'Register'),
|
||||||
onPressed: widget.model.isFormValid(context, widget.model.registerFormKey)
|
onPressed: widget.model
|
||||||
|
.isFormValid(context, widget.model.registerFormKey)
|
||||||
? widget.model.registerVehicle
|
? widget.model.registerVehicle
|
||||||
: null,
|
: null,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue