Skip to content

Commit

Permalink
Apply automatic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
baylessj authored and actions-user committed Jan 26, 2020
1 parent b6ca5df commit f1bdbc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/screens/add_edit/forms/car_autocomplete.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class _CarFormState extends State<CarForm> {
textSubmitted: (_) => changeFocus(widget.node, widget.nextNode),
);
return FormField<String>(
builder: (FormFieldState<String> input) {
builder: (FormFieldState<String> input) {
// workaround for the fact that the text is cleared on rebuild?
_autocompleteController.text = selectedCar?.name ?? '';
return autoCompleteField;
Expand Down
5 changes: 3 additions & 2 deletions lib/screens/add_edit/todo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,9 @@ class _TodoAddEditScreenState extends State<TodoAddEditScreen> {
todo: widget.todo,
node: _dateNode,
nextNode: _mileageNode,
onSaved: (val) =>
_dueDate = (val == null || val == '') ? null : DateFormat.yMd().parseStrict(val),
onSaved: (val) => _dueDate = (val == null || val == '')
? null
: DateFormat.yMd().parseStrict(val),
),
focusNode: _dateNode,
),
Expand Down

0 comments on commit f1bdbc9

Please sign in to comment.