Skip to content

BUG: OTP verification code digits render vertically cropped inside their input boxes #332

Description

@g-k-s-03

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

Description

On the OTP/"Verify Email" screen (shown during signup and password reset flows), digits typed into the 6-box code entry field render visually clipped at the top and bottom of each box, rather than appearing fully visible and vertically centered. This makes the entered code harder to read and confirm before submitting, and looks visually broken/unpolished the characters look cut off rather than cleanly contained within their box.

Steps to Reproduce

  1. From the login screen, tap "Sign Up".
  2. Fill in the "Create the Team" form (team name, admin name, email, password) and submit OR, alternatively, use "Forgot Password" from the login screen and enter an email.
  3. You'll land on the "Verify Email" screen showing 6 empty input boxes for the code.
  4. Tap into the first box and type any digit (e.g. "1"), then a second digit into the next box (e.g. "2").
  5. Observe the rendered digits in the boxes.

Expected Behavior

Each typed digit should render fully visible, cleanly centered within its box, with consistent padding above and below the character matching how digits/text typically render inside a rounded input field elsewhere in the app.

Actual Behavior

The digit is visibly clipped at the top and bottom edges of the box part of the character appears cut off by the box's border/rounded corners rather than sitting with breathing room inside it. This is consistent across every box in the row, and reproducible every time a digit is entered.

Screenshot

Image

Affected File

lib/screens/auth/verify_otp_screen.dart — specifically the OTP box's TextField and its InputDecoration (font size, content padding, and vertical alignment settings for the digit box).

Suggested Fix

Likely caused by the box's fixed container height not properly accommodating the TextField's default line-height metrics at the current font size, combined with the text not being explicitly vertically centered. A minimal, low-risk fix would be:

  • Adding textAlignVertical: TextAlignVertical.center to the box's TextField
  • Adjusting contentPadding and/or isDense in its InputDecoration so the glyph renders fully within the box's fixed height without being clipped

Record

  • I agree to follow this project's Code of Conduct
  • I want to work on this issue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions