Flutter, Laravel, Vue - Idea To Deployment - Part-18- Sign In page Validation

preview_player
Показать описание
In this part we'll validate the Sign In Page, but, before that we'll try to separate our Login from the UI to have a clean structure of our code.
Hopefully the state rebuilder package provides a clean way to handle this situation.

Link to the source code:

Рекомендации по теме
Комментарии
Автор

This is the best Flutter, Laravel tutorial in Youtube
Thanks for existing, keep up!

enasbitadil
Автор

This tutorial is truly fantastic, so please keep up the great work. Thanks so much.

gilmcglory
Автор

this is pure gold content, thank you so much is all i can say.


i just started learning flutter and this time i m learning it a way that i improve my programming skills by understanding state managemenet, dependency injections, singletons e.t.c i have experience in web apps but never dive into advanced stuff. in that capacity i have some questions i want to ask.

1. is it fair to say sign_in_form_model.dart is your viewmodel and what u did in sign_in_page.dart is viewmodel binding ?
2. what the real definition of dependency injection and state management w.r.t to what u coded until. like when u pass signInFormModel in SignInFormModel StateBuilder and its child widget can access to it. is this dependency injection ? and what u are doing via setEmail is state management ? or together the UI binding and setEmail makes state-management solution.
3. when u use two StateBuilder in login form one for email and other for password, is it talking to same instance. what i mean is can setPassword in sign_in_form_model.dart access what we pass via setEmail ? if no we are making this view more bulky by creating more instances.


another suggestion is i am struggling with services as well i hope you will be able to show a clean way to inject them, and i hope u include server side error too

rizi
Автор

missing your video, i hope u will get back soon with this series

rizi
Автор

this is really great tutorial, so i have a question i have used the same validation as yours in sign_in_model MaterialButton i don't understand it works fine for the first time but in the second time even when the fields are null they don't show the error snackbar

midnitebinarytrader
Автор

Haven't seen any video since 4 days. Missing those quality stuff

saleemmirza
Автор

Fantastic tutorial. but i have a question, why i'm having an error in StateBuilder ? It says that The named parameter 'models' isnt defined. Thanks man.

johneduardbongolan
Автор

Hi I have a error in this project and it is : Unhandled Exception: Instance of 'LoginError' it seems error handling not worked for me!!! what's the problem?! thank you for this amazing tutorial!

hesamnikkhah
Автор

Salam Alaikum brother,
I think Are you from Afghanistan?

محمد-رحل
Автор

new version states_rebuilder:
Your costume error/exception classes must implement `Exception` not `Error`.
and:
StateBuilder(
observe : ()=> RM.get<SignInFormModel>(),
shouldRebuild: (signInFormModel) => true,

MrSmekalkin