tf_6 method
Implementation
Widget tf_6(){
if(widget.countNumber < 6 ) return SizedBox();
return TextFieldFastor(
width: widget.widthOTP,
padding: EdgeInsets.symmetric(vertical: widget.heightByPadding! ), //to set height
maxLength: 1,
decorationBackground: widget.decoration,
fontSize: widget.fontSize,
text_color: widget.colorText,
hint_color: widget.colorHint,
textAlign: TextAlign.center,
focusNode: tf6_node,
fontFamily: widget.fontFamily,
autovalidateMode: tf6_valid,
validatorCustom: ValidatorTemplate.equal( 1 ),
keyboardType: TextInputType.number,
onChanged: (s){
//set value
tf6_txt = s;
//call back
updateCallBack();
//focus to previous
if( s == "" ) {
FocusScope.of(context).requestFocus(tf5_node);
}
},
// margin: EdgeInsets.only( right: DSDimen.space_level_3)
);
}