Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validator message alignment issue #99

Open
adarshwebcastle opened this issue Feb 7, 2024 · 2 comments
Open

Validator message alignment issue #99

adarshwebcastle opened this issue Feb 7, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@adarshwebcastle
Copy link

I'm using BoxLooseDecoration in PinInputTextFormField, and when validator added it look like this

Screenshot 2024-02-07 at 11 15 13 AM

    PinInputTextFormField(
          pinLength: 4,
          decoration: BoxLooseDecoration(
              radius: const Radius.circular(0),
              gapSpace: 40,
              strokeColorBuilder: PinListenColorBuilder(
                Palette.primary,
                Palette.grey.withOpacity(0.6),
              ),
              obscureStyle: ObscureStyle(
                isTextObscure: true,
                obscureText: '●',
              )),
          onChanged: (value) {
            debugPrint('onChanged OTP $value');
         
          },
          validator: (value) {
            if ((value?.isEmpty ?? true) || (value?.length ?? 0) < 4) {
              return "OTP is required";
            }
            return null;
          },
          onSubmit: (value) {
           
          },
        ),
@TinoGuo TinoGuo self-assigned this Jan 4, 2025
@TinoGuo TinoGuo added the bug Something isn't working label Jan 4, 2025
@TinoGuo
Copy link
Owner

TinoGuo commented Jan 4, 2025

@adarshwebcastle , I think u mean the gap between pin and error text is too close, am i right?

@adarshwebcastle
Copy link
Author

Yes, You are right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants