adar2378 / pin_code_fields

A flutter package which will help you to generate pin code fields with beautiful design and animations. Can be useful for OTP or pin code inputs 🤓🤓
https://pub.dev/packages/pin_code_fields
MIT License
677 stars 330 forks source link

Add errorText String as a parameter of PinCodeTextField constructor #336

Closed basnetjiten closed 12 months ago

basnetjiten commented 1 year ago
 PinCodeTextField({
   Key? key,
   this.errorText,  

});

     .......
     @override
      Widget build(BuildContext context) {
       var textField = Directionality(
       textDirection: widget.errorTextDirection,
       child: Padding(
       padding: widget.errorTextMargin,
       child: TextFormField(
       decoration: InputDecoration(
        contentPadding: const EdgeInsets.all(0),
        border: InputBorder.none,
        fillColor: widget.backgroundColor,
        enabledBorder: InputBorder.none,
        focusedBorder: InputBorder.none,
        disabledBorder: InputBorder.none,
       errorText: widget.errorText ===>> I can use it directly when using bloc patterns
       ),
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.