본문 바로가기
Flutter

[Flutter] TextFormField에서 키보드 Next 를 눌러도 다음 TextFormField로 안 넘어갈 때

by GGoris 2022. 1. 9.
반응형

TextFormField에 아래의 코드 추가로 해결가능.

onEditingComplete: (){
  do {
    FocusScope.of(context).nextFocus();
  } while (FocusScope.of(context).focusedChild?.context?.widget is! EditableText);
},

 

https://stackoverflow.com/questions/52150677/how-to-shift-focus-to-next-textfield-in-flutter

 

How to shift focus to next textfield in flutter?

I am new to Flutter. I am building a form with multiple text inputs using following widgets: Form, TextFormField. The keyboard that appears doesn't show "next" (which should shift the focus to next

stackoverflow.com

 

 

반응형

댓글