You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I changed the length of VerificationCodeInput form 4 to 6 and I'm having errors like this.
RangeError (index): Invalid value: Not in range 0..3, inclusive: 4
The text was updated successfully, but these errors were encountered:
That's not all, List FocusNode in initState, doesn't complete, you do widget.lenght, but sometimes if lengh is changed, so you have to put the lenght of user input parameter
Fails for me
void initState() {
if (_listFocusNode.isEmpty) {
for (var i = 0; i < widget.length; i++) {
_listFocusNode.add(new FocusNode());
_listControllerText.add(new TextEditingController());
_code[i] = " ";
}
}
super.initState();
}
Works changing lenght of class like u said before
void initState() {
if (_listFocusNode.isEmpty) {
for (var i = 0; i < VerificationCodeInput().length; i++) {
_listFocusNode.add(new FocusNode());
_listControllerText.add(new TextEditingController());
_code[i] = " ";
}
}
super.initState();
}
I changed the length of VerificationCodeInput form 4 to 6 and I'm having errors like this.
RangeError (index): Invalid value: Not in range 0..3, inclusive: 4
The text was updated successfully, but these errors were encountered: