diff --git a/lib/otp_field.dart b/lib/otp_field.dart index 5234a6a..684e643 100644 --- a/lib/otp_field.dart +++ b/lib/otp_field.dart @@ -16,6 +16,9 @@ class OTPTextField extends StatefulWidget { /// Width of the single OTP Field final double fieldWidth; + /// Height of the single OTP Field + final double fieldHeight; + /// margin around the text fields @Deprecated( "Since there is an issue with the margin because it's around each item, we use [spaceBetween] from now on.") @@ -73,6 +76,7 @@ class OTPTextField extends StatefulWidget { this.width = 10, this.controller, this.fieldWidth = 30, + this.fieldHeight = 60, this.spaceBetween = 0, this.otpFieldStyle, this.hasError = false, @@ -173,6 +177,7 @@ class _OTPTextFieldState extends State { return Container( width: widget.fieldWidth, + height: widget.fieldHeight, margin: widget.margin ?? EdgeInsets.only( right: isLast ? 0 : widget.spaceBetween,