LiewJunTung / pin_code_text_field

A highly customisable Flutter widget for entering pin code. Suitable for use cases such as login and OTP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not visibling pin in text field

fazil-augr opened this issue · comments

I am using pin_code_text_field: ^1.3.3 . In text field the pin are not showing. I don't know what happening. When entering the text the curser is moving and text is retrieving but showing in the pin textfield. I am using below code

PinCodeTextField( autofocus: false, controller: controller, hideCharacter: false, highlight: true, highlightColor: Colors.orange, defaultBorderColor: Colors.black, hasTextBorderColor: Colors.green, maxLength: 6, hasError: hasError, maskCharacter: "\u25CF", isCupertino: false, onTextChanged: (text) { setState(() { hasError = false; if(text.length<6){ submitbtn = true; } else{ submitbtn = false; } }); }, pinCodeTextFieldLayoutType:PinCodeTextFieldLayoutType.AUTO_ADJUST_WIDTH, wrapAlignment: WrapAlignment.start, pinBoxDecoration: ProvidedPinBoxDecoration.underlinedPinBoxDecoration, pinTextStyle: TextStyle(fontSize: 20.0,fontWeight: FontWeight.w600,color: Colors.black), pinTextAnimatedSwitcherTransition: ProvidedPinBoxTextAnimation.scalingTransition, pinTextAnimatedSwitcherDuration: Duration(milliseconds: 500), ),

Please solve the issue.

When entering first time it is not visible PIN number. After entering second time it is visible. Kindly please fix the issue.