chore: clear choreographer when user clears the input field (#4697)

This commit is contained in:
ggurdin 2025-11-19 16:09:49 -05:00 committed by GitHub
parent da6e6be0cf
commit 09a949ca5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {