otp_textfield
otp_textfield copied to clipboard
Unable to set field height
Am unable to set field height. I have checked all the parameters there is only setWidth parameter. How do I go about it?
@abisao1 just provide height to parent widget or wrap this widget with SizedBox widget and provide height through it.
@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.
I styled the OTP field as circle, but the numbers can't be show in the center.
add a photo for clarity
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.
@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.
How do you style the input as circle ? what border did you use ?
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.