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