mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
fix a random bug
This commit is contained in:
@@ -65,8 +65,9 @@ class MealForm extends StatelessWidget {
|
||||
context: context,
|
||||
initialTime: _meal.time!,
|
||||
);
|
||||
|
||||
_timeController.text = timeToString(pickedTime)!;
|
||||
if (pickedTime != null) {
|
||||
_timeController.text = timeToString(pickedTime)!;
|
||||
}
|
||||
},
|
||||
onSaved: (newValue) {
|
||||
_meal.time = stringToTime(newValue);
|
||||
|
||||
Reference in New Issue
Block a user