File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed
Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,9 @@ class _TaskSearchTextFieldState extends State<TaskSearchTextField> {
127127 ),
128128 child: WorkInterfaceIcon (origin: suggestion.origin),
129129 ),
130- title: Text (suggestion.displayText),
130+ title: Text (suggestion.displayText.isNotEmpty
131+ ? suggestion.displayText
132+ : '<NO COMMENT>' ),
131133 subtitle: Text ('#${suggestion .task ?.id ?? "<No Task>" }' ),
132134 onTap: () {
133135 controller.closeView (null );
@@ -141,10 +143,14 @@ class _TaskSearchTextFieldState extends State<TaskSearchTextField> {
141143 },
142144 );
143145 } else {
144- return const ListTile (
145- leading: Icon (Icons .search),
146- title: Text ('Start typing to search for a Task' ),
147- subtitle: Text ('Hint: Try \$ me or #[TicketID]' ),
146+ return ListTile (
147+ leading: const Icon (Icons .search),
148+ title: const Text ('Start typing to search for a Task' ),
149+ subtitle: const Text ('Hint: Try \$ me or #[TicketID]' ),
150+ onTap: () {
151+ controller.closeView (null );
152+ widget.onSubmitted? .call ('' );
153+ },
148154 );
149155 }
150156 }
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class AccumulatingStream<T> extends Stream<List<T>> {
88 AccumulatingStream (Stream <T > sourceStream) {
99 _sub = sourceStream.listen ((data) {
1010 _list.add (data);
11- _accumulatingController.add (_list);
11+ _accumulatingController.add ([... _list] );
1212 }, onError: (error) {
1313 _accumulatingController.addError (error);
1414 }, onDone: () {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description: A time tracking and booking tool
33
44publish_to : ' none'
55
6- version : 1.4.1+7
6+ version : 1.4.2+8
77
88environment :
99 sdk : ' >=3.0.0 <4.0.0'
You can’t perform that action at this time.
0 commit comments