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.kmRadController.addListener(onDistanceTravledUpdated);
|
||||
|
||||
widget.kmAutoController.text = "0";
|
||||
widget.kmFussController.text = "0";
|
||||
widget.kmRadController.text = "0";
|
||||
// if one of the values is "" the excursion is edited for the first time. On which value i check here is unnecessarry
|
||||
if (widget.kmAutoController.text == "") {
|
||||
widget.kmAutoController.text = "0";
|
||||
widget.kmFussController.text = "0";
|
||||
widget.kmRadController.text = "0";
|
||||
}
|
||||
|
||||
// Track Conditions
|
||||
widget.spGutController.addListener(onTrackConditionsUpdated);
|
||||
widget.spMittelController.addListener(onTrackConditionsUpdated);
|
||||
widget.spSchlechtController.addListener(onTrackConditionsUpdated);
|
||||
|
||||
widget.spGutController.text = "0";
|
||||
widget.spMittelController.text = "0";
|
||||
widget.spSchlechtController.text = "0";
|
||||
// if one of the values is "" the excursion is edited for the first time. On which value i check here is unnecessarry
|
||||
if (widget.spGutController.text == "") {
|
||||
widget.spGutController.text = "0";
|
||||
widget.spMittelController.text = "0";
|
||||
widget.spSchlechtController.text = "0";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user