Answers for "flutter changing focus of textfield"

0

flutter changing focus of textfield

FocusNode textSecondFocusNode = new FocusNode();

    TextFormField textFirst = new TextFormField(
      onFieldSubmitted: (String value) {
        FocusScope.of(context).requestFocus(textSecondFocusNode);
      },
    );

    TextFormField textSecond = new TextFormField(
      focusNode: textSecondFocusNode,
    );

    // render textFirst and textSecond where you want
Posted by: Guest on September-12-2021

Code answers related to "flutter changing focus of textfield"

Browse Popular Code Answers by Language