mirror of
https://github.com/foss42/apidash.git
synced 2025-05-31 06:08:09 +08:00
fix: switch to mentiontagtextfield
This commit is contained in:
@ -50,7 +50,7 @@ class MentionField extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MentionTagTextFormField(
|
||||
return MentionTagTextField(
|
||||
focusNode: focusNode,
|
||||
onTap: () {
|
||||
focusNode.requestFocus();
|
||||
@ -66,7 +66,8 @@ class MentionField extends StatelessWidget {
|
||||
onChanged: (value) {
|
||||
onChanged?.call(controller.text);
|
||||
},
|
||||
onFieldSubmitted: (value) {
|
||||
onEditingComplete: () {
|
||||
focusNode.unfocus();
|
||||
onFieldSubmitted?.call(controller.text);
|
||||
isSuggestionsVisible.value = false;
|
||||
},
|
||||
|
Reference in New Issue
Block a user