1

I am using an imported PinPut Flutter package and I am trying to fix the overflowed pinput on the right. I have tried setting the eachFieldWidth and eachFieldHeight to the smallest value but it doesn't make any difference.

return PinPut(
  fieldsCount: 6,
  textStyle: const TextStyle(fontSize: 25.0),
  eachFieldWidth: 40.0,
  eachFieldHeight: 40.0,
  focusNode: _pinPutFocusNode,
  controller: _pinPutController,
  submittedFieldDecoration: pinPutDecoration,
  selectedFieldDecoration: pinPutDecoration,
  followingFieldDecoration: pinPutDecoration,
  pinAnimationType: PinAnimationType.fade,}

PinputOverflowed

Priscilla
  • 53
  • 9

1 Answers1

0

There is a 'pull requests' that is waiting to merge.
If you want to adapt to that modification, you need to change Pinput package.
Or you need to wait for merging that commit.
https://github.com/Tkko/Flutter_PinPut/pull/37/commits/7b1c49bda70455aac6ddecc6ab991d1662835de4

-Before adapt that commit

enter image description here


-After adapt that commit

enter image description here

If you changed from Pubdev package to local package, please look for this link.

KuKu
  • 6,654
  • 1
  • 13
  • 25