fixed resetting of the values in spurbedingungen when editing entry or going back from map, or things like this
This commit is contained in:
@@ -42,18 +42,24 @@ class StreckeUSpurbedingungenState extends State<StreckeUSpurbedingungen> {
|
|||||||
widget.kmFussController.addListener(onDistanceTravledUpdated);
|
widget.kmFussController.addListener(onDistanceTravledUpdated);
|
||||||
widget.kmRadController.addListener(onDistanceTravledUpdated);
|
widget.kmRadController.addListener(onDistanceTravledUpdated);
|
||||||
|
|
||||||
widget.kmAutoController.text = "0";
|
// if one of the values is "" the excursion is edited for the first time. On which value i check here is unnecessarry
|
||||||
widget.kmFussController.text = "0";
|
if (widget.kmAutoController.text == "") {
|
||||||
widget.kmRadController.text = "0";
|
widget.kmAutoController.text = "0";
|
||||||
|
widget.kmFussController.text = "0";
|
||||||
|
widget.kmRadController.text = "0";
|
||||||
|
}
|
||||||
|
|
||||||
// Track Conditions
|
// Track Conditions
|
||||||
widget.spGutController.addListener(onTrackConditionsUpdated);
|
widget.spGutController.addListener(onTrackConditionsUpdated);
|
||||||
widget.spMittelController.addListener(onTrackConditionsUpdated);
|
widget.spMittelController.addListener(onTrackConditionsUpdated);
|
||||||
widget.spSchlechtController.addListener(onTrackConditionsUpdated);
|
widget.spSchlechtController.addListener(onTrackConditionsUpdated);
|
||||||
|
|
||||||
widget.spGutController.text = "0";
|
// if one of the values is "" the excursion is edited for the first time. On which value i check here is unnecessarry
|
||||||
widget.spMittelController.text = "0";
|
if (widget.spGutController.text == "") {
|
||||||
widget.spSchlechtController.text = "0";
|
widget.spGutController.text = "0";
|
||||||
|
widget.spMittelController.text = "0";
|
||||||
|
widget.spSchlechtController.text = "0";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user