chore: clear choreographer when user clears the input field (#4697)
This commit is contained in:
parent
da6e6be0cf
commit
09a949ca5f
1 changed files with 8 additions and 0 deletions
|
|
@ -187,6 +187,14 @@ class Choreographer extends ChangeNotifier {
|
|||
notifyListeners();
|
||||
}
|
||||
|
||||
// if the user cleared the text, reset everything
|
||||
if (textController.editType == EditTypeEnum.keyboard &&
|
||||
_lastChecked != null &&
|
||||
_lastChecked!.isNotEmpty &&
|
||||
textController.text.isEmpty) {
|
||||
clear();
|
||||
}
|
||||
|
||||
_lastChecked = textController.text;
|
||||
if (errorService.isError) return;
|
||||
if (textController.editType == EditTypeEnum.keyboard) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue