Closed jansvanda closed 1 year ago
I found in autocomplete_view.dart that on line 218 you wrote
suffixIcon: (showClearButton && initialValue == null)
? IconButton(
icon: const Icon(Icons.close),
onPressed: () => textController.value.clear(),
)
: suffixIcon,
But that means if initialvalue gets != null, the suffix icon is shown. But that makes no sense, we want to clear the controller IF there is already something inside!
Because of assert(initialValue == null || controller == null)
in TextFormField
if you assign a controller then no need to assign initialvalue.
more customizable options added.
Hello in #1.1.0 the clearButton still disappears after an suggestion is picked, or am I missing some option?
I am very sorry, it was because I still have been using initialValue. After deleting this it shows the clearButton !
The clearbutton doesn't stay after I pick a Suggestion. It disappears and If i picked a Suggestion and want to remove it, i only have the option to remove it manually all the text with the keyboard.
Using your latest version 1.0.4