Bloc: [SUGGESTION/QUESTION] A Bloc example using Form validations

Created on 28 Mar 2019  路  6Comments  路  Source: felangel/bloc

Please, update the Login example to show how to implement form validations using bloc.

scenarios:

  1. Map a state when the username is empty. Show a specific message using I18N;
  2. Map a state when the username does not match a regex expression. Show a specific message using I18N;
  3. Map a state when the password is empty. Show a specific message using I18N;
  4. Map a state when the password does not match a regex expression. Show a specific message using I18N;

The above scenario can be simple but what we do when have more fields such as a register form with the city, state, country, email, etc.

I did only open this issue because I didn't find in your examples something using bloc and validations.

example

Most helpful comment

@programadorthi @Nothing-Works check out examples/flutter_form_validation for how to use bloc for form validation. Let me know if you have any other question 馃憤

All 6 comments

Hey @programadorthi 馃憢

I鈥檒l try to put together an example over the next few days of form validation using bloc.
Thanks 馃憤

@felangel please do so, looking forward to reading more examples.

@programadorthi @Nothing-Works check out examples/flutter_form_validation for how to use bloc for form validation. Let me know if you have any other question 馃憤

Hi @felangel Could you please update README to include your 2 new examples flutter_form_validation and flutter_firebase_authentication. BTW, thanks for your hard work 馃憤

Yup will do in the next few hours 馃憤
No problem!

Just updated the README 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rsnider19 picture rsnider19  路  3Comments

abinvp picture abinvp  路  3Comments

tigranhov picture tigranhov  路  3Comments

MahdiPishguy picture MahdiPishguy  路  3Comments

krusek picture krusek  路  3Comments