-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autofocus Issue #13
Comments
Yes, I'm also facing the same issue, It's not supporting focusNode. |
I'm also facing the same issue |
same |
You can use the OtpFieldController to set focus on any text field. |
Could you please describe a little bit the use of OtpFieldController? I've tried to use in this way (given below). and found error
|
Try this: final controller = OtpFieldController();
@override
void initState() {
super.initState();
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
controller.setFocus(0);
});
} |
I can't set otp text field to autofocus.
The text was updated successfully, but these errors were encountered: