Skip to content

Commit

Permalink
fixed newly introduced bugs
Browse files Browse the repository at this point in the history
this happens when you don't test before you release
  • Loading branch information
enoy19 committed Jun 2, 2023
1 parent 6f0fa97 commit 7a8759d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
16 changes: 11 additions & 5 deletions lib/ui/widget/task_search_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ class _TaskSearchTextFieldState extends State<TaskSearchTextField> {
),
child: WorkInterfaceIcon(origin: suggestion.origin),
),
title: Text(suggestion.displayText),
title: Text(suggestion.displayText.isNotEmpty
? suggestion.displayText
: '<NO COMMENT>'),
subtitle: Text('#${suggestion.task?.id ?? "<No Task>"}'),
onTap: () {
controller.closeView(null);
Expand All @@ -141,10 +143,14 @@ class _TaskSearchTextFieldState extends State<TaskSearchTextField> {
},
);
} else {
return const ListTile(
leading: Icon(Icons.search),
title: Text('Start typing to search for a Task'),
subtitle: Text('Hint: Try \$me or #[TicketID]'),
return ListTile(
leading: const Icon(Icons.search),
title: const Text('Start typing to search for a Task'),
subtitle: const Text('Hint: Try \$me or #[TicketID]'),
onTap: () {
controller.closeView(null);
widget.onSubmitted?.call('');
},
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/util/accumulating_stream.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class AccumulatingStream<T> extends Stream<List<T>> {
AccumulatingStream(Stream<T> sourceStream) {
_sub = sourceStream.listen((data) {
_list.add(data);
_accumulatingController.add(_list);
_accumulatingController.add([..._list]);
}, onError: (error) {
_accumulatingController.addError(error);
}, onDone: () {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A time tracking and booking tool

publish_to: 'none'

version: 1.4.1+7
version: 1.4.2+8

environment:
sdk: '>=3.0.0 <4.0.0'
Expand Down

0 comments on commit 7a8759d

Please sign in to comment.