format
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2020-01-12 14:07:07 +01:00
parent fbd8efa2b2
commit 780ee537f6
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 229 additions and 237 deletions

View File

@ -125,8 +125,7 @@ class _TaskEditPageState extends State<TaskEditPage> {
widget.task.repeatAfter)
?.toString(),
onSaved: (repeatAfter) => _repeatAfter =
getDurationFromType(
repeatAfter, _repeatAfterType),
getDurationFromType(repeatAfter, _repeatAfterType),
decoration: new InputDecoration(
labelText: 'Repeat after',
border: InputBorder.none,
@ -222,14 +221,8 @@ class _TaskEditPageState extends State<TaskEditPage> {
_priority = _priorityFromString(newValue);
});
},
items: [
'Unset',
'Low',
'Medium',
'High',
'Urgent',
'DO NOW'
].map((String value) {
items: ['Unset', 'Low', 'Medium', 'High', 'Urgent', 'DO NOW']
.map((String value) {
return new DropdownMenuItem(
value: value,
child: new Text(value),
@ -254,8 +247,8 @@ class _TaskEditPageState extends State<TaskEditPage> {
child: TypeAheadFormField(
textFieldConfiguration: TextFieldConfiguration(
controller: _labelTypeAheadController,
decoration: InputDecoration(
labelText: 'Add a new label')),
decoration:
InputDecoration(labelText: 'Add a new label')),
suggestionsCallback: (pattern) {
return _searchLabel(pattern);
},
@ -264,8 +257,7 @@ class _TaskEditPageState extends State<TaskEditPage> {
title: Text(suggestion),
);
},
transitionBuilder:
(context, suggestionsBox, controller) {
transitionBuilder: (context, suggestionsBox, controller) {
return suggestionsBox;
},
onSuggestionSelected: (suggestion) {