david-legend / otp_textfield

BSD 3-Clause "New" or "Revised" License
61 stars 39 forks source link

Unable to set field height #13

Open abisao1 opened 1 year ago

abisao1 commented 1 year ago

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

Mohit-Training commented 1 year ago

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

ShiranaiZo commented 8 months ago

@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.

kwarnkham commented 4 months ago

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

david-legend commented 4 months ago

add a photo for clarity

kwarnkham commented 4 months ago

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 commented 4 months ago

@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.

david-legend commented 4 months ago

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

MobiNeil commented 2 months ago

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.