otp_textfield icon indicating copy to clipboard operation
otp_textfield copied to clipboard

Unable to set field height

Open abisao1 opened this issue 2 years ago • 8 comments

Am unable to set field height. I have checked all the parameters there is only setWidth parameter. How do I go about it?

abisao1 avatar Oct 05 '22 16:10 abisao1

@abisao1 just provide height to parent widget or wrap this widget with SizedBox widget and provide height through it.

Mohit-Training avatar Sep 19 '23 12:09 Mohit-Training

@abisao1 just provide height to parent widget or wrap this widget with SizedBox widget and provide height through it.

When the height is set, the text does not center vertically.

ShiranaiZo avatar Jan 06 '24 15:01 ShiranaiZo

I styled the OTP field as circle, but the numbers can't be show in the center.

kwarnkham avatar May 13 '24 11:05 kwarnkham

add a photo for clarity

david-legend avatar May 14 '24 16:05 david-legend

add a photo for clarity

Sorry, I don't have it now as I changed my code. By default the input number is align to the bottom, which is fine if you style the input as underlined. But if you style the input as circle, it makes sense to display the input number at the center of the circle. But, I didn't find a way to do that.

kwarnkham avatar May 15 '24 08:05 kwarnkham

@abisao1 just provide height to parent widget or wrap this widget with SizedBox widget and provide height through it.

When the height is set, the text does not center vertically.

Maybe same issue as this one.

kwarnkham avatar May 15 '24 08:05 kwarnkham

How do you style the input as circle ? what border did you use ?

david-legend avatar May 15 '24 08:05 david-legend

I am also unable to set the height of the field. It will only go so big - about 60px - any extra height which I add to the 'fieldHeight' parameter just adds extra padding around the field, but will not increase the height of the field.

MobiNeil avatar Jul 16 '24 10:07 MobiNeil