supabase-community / flutter-auth-ui

Supabase Auth UI library for Flutter
https://supabase.com
MIT License
114 stars 58 forks source link

MetaDataField needs autoValidation to match email/password field functionality #123

Closed bcorman closed 1 month ago

bcorman commented 1 month ago

I'm adding some validation to a userName field on our sign up form to check if a username is available, and noticed that the field doesn't validate the same way that the email and password fields do, so users can submit the form in a bad state:

Form submitted with invalid username: Screenshot 2024-10-11 120913 Submitting a 2nd time will show validation: Screenshot 2024-10-11 120919

We just need to add autovalidateMode: AutovalidateMode.onUserInteraction to the metadata's TextFormField.