added simple layout for screens without bottom nav
split form widget on: topBar with title and subtitle, form field(input with styles), form fields(login inputs), submit button and widget with a state that contains all of this
I used containers only to connect to the store and get request action, _ViewModel is something like mapStateToProps. As I see store can be connected only to StatelessWidget but I'm not sure.
I used expanded to move button on the bottom- it get all rest space. Probably I will change this, the scrollable list will be better(in the actual approach I can't allow overflowing on the bottom- I will get an error).
I checked libraries for forms and found flutter_form_builder and flutter_form_bloc. I only checked the first one because BLOC is an alternative for redux and I don't want to make a mismatch. Generally, flutter_form_builder has a lot of different fields but validation is broken- it fires all errors after touching on any field.
I will refactor composing validators later to allow cross-validation(I need this in register form) and probably reuse a part of login widgets.
I used containers only to connect to the store and get request action, _ViewModel is something like mapStateToProps. As I see store can be connected only to StatelessWidget but I'm not sure. I used expanded to move button on the bottom- it get all rest space. Probably I will change this, the scrollable list will be better(in the actual approach I can't allow overflowing on the bottom- I will get an error). I checked libraries for forms and found flutter_form_builder and flutter_form_bloc. I only checked the first one because BLOC is an alternative for redux and I don't want to make a mismatch. Generally, flutter_form_builder has a lot of different fields but validation is broken- it fires all errors after touching on any field. I will refactor composing validators later to allow cross-validation(I need this in register form) and probably reuse a part of login widgets.