In this video we'll explore a pattern for validating data in Flutter using just the Provider package with no streams or BLoCs. Article: julow.com/article/1 Github: github.com/nhandrew/validatio... Social Media: / andyjulow
Пікірлер: 32
@blankchequecorp4 жыл бұрын
I have been following all your tutorials on flutter. Thanks to you I understand flutter now and i am enjoying it. Your methods of teaching is very simple, clear and comprehensive. I had to abandon the Udemy courses i am taking on flutter. I am still getting a hang of it, but with you holding my hand, I should be able to stand in a short time. Thank you very much and God bless you. Emmanuel Lagos, Nigeria
@DguruZ4 жыл бұрын
Thanks so much Andy, I've have started loving Provider
@jessiet51894 жыл бұрын
Nice tutorial! Clear, plain and simple. Exactly what I need. Thanks for sharing Andy.
@robsonsilv4.4 жыл бұрын
Thanks Andy, you make a great serie about Provider.
@marcelo42054 жыл бұрын
Thanks a lot, Andy. Great video and very well explained.
@chetan64064 жыл бұрын
Clear , concise and very well explained...thanks for this video.
@MrLyonliang4 жыл бұрын
Thanks a lot. I like this pattern too, which seperates business logic from UI and let the UI Reactive & Declarative, thanks again.
@philipretl94283 жыл бұрын
Thanks for your video, greetings from Colombia.
@scottatkinson63394 жыл бұрын
Absolutely awesome! thanks for creating the video!!!
@andyjulow43884 жыл бұрын
Thanks for the topic suggestion. I like the way provider worked out here.
@MrAidooyaw4 жыл бұрын
I'm going to check out that validation provider package First time I'm seeing such a thing
@sakwebetrandcliff11512 жыл бұрын
Thanks for the tutorial, it was explicit.
@phuongnhi78593 жыл бұрын
thank you for your video. It's helpful to me
@fouad_alshamy4 жыл бұрын
Good job Andy
@aminafrazandeh8259 ай бұрын
nice video , it helped me!
@reach5593 Жыл бұрын
Thanks Andy!
@kev001able4 жыл бұрын
Great video 👍🏼
@jahangirshah2747 Жыл бұрын
Thank u very much sir.
@MrAidooyaw4 жыл бұрын
I like this pattern more than the normal form widget whereby u have to press the submit button before validation works
@jofercho2 жыл бұрын
beautiful
@user-vo7lq1jt5v3 жыл бұрын
Thanks for your tutorial. Your explonation was very helpfull for me. I see that because you have one provider for all fields on screen, when value changed in one field, other fields also rebuilds, isn't it better to have separate provider each field? What if for example create parent class with ChangeNotifier (for example StandartTextFieldValidation with ChangeNotifier) write there common logic and create children classes for each provider for each field in form?
@jeffersonsantosangulo16264 жыл бұрын
thanks
@nikhilpatil87983 жыл бұрын
Thank u so much really appreciate it. Can u increase the font size? The font size is too small.
@asif_imtiaz2 жыл бұрын
it would be awesome if you could add in, how to reset the TextField values after submit button.
@double8tz4 жыл бұрын
Thanks for great tutorial,but my question is does it mean that whole form rebuild each time the input form is validated?
@juniordev41903 жыл бұрын
Yes, whenever you trigger the notifyListeners() method, the whole UI rebuilds. To avoid a larger UI rebuild, you could use a consumer or selector widget which enables you to change a small part of the UI.
@AlexAstudillo12 жыл бұрын
Hello, how to set internalizations, for example in the error message multilanguage English "Error length" Spanish "Error de longitud"
@MohamedIbrahim-rs7uy4 жыл бұрын
thank you Andy, after submitting the form i want add a navigate to a new screen how to do that? onPressed: (!validationService.isValid) ? null : validationService.submitData //here i want the navigation
@andyjulow43884 жыл бұрын
Hi Mohamed, one approach would be to declare a stream in signup_validation.dart that you pass a value to in the submitdata function to indicate the record save is complete. You can then convert the signup page to a stateful widget and setup a listener to listen for changes and Navigate to the desired page.
@IbrahimAlkuwaifi4 жыл бұрын
You could also do something like this bool isValid() { if (_email.value != null && _password.value != null) { print('${_email.value} + $_password'); return true; } else { return false; } notifyListeners(); } and then in your sign in page onPressed: validationService.isValid() ? () { validationService.submitData(context); } : null, then your submit can be like this for example void submitData(BuildContext context) { Navigator.pushNamed(context, NavigationDrawer.id); }
@ihebhmida94692 жыл бұрын
don't follow this shit, thank me later :)
@badaruoluwasegun586 Жыл бұрын
Kindly share your reason as that would be appreciated.