In LoginPage, when the keyboard is shown, the app adds too much space and it's very unuseful. When the keyboard is
hidden, there is also some unuseful space that activates the scrolling of the page.
Consider switching to MediaQuery.of(context).viewInsets.
Too much space added when keyboard is shown
In LoginPage, when the keyboard is shown, the app adds too much space and it's very unuseful. When the keyboard is hidden, there is also some unuseful space that activates the scrolling of the page.
Consider switching to
MediaQuery.of(context).viewInsets
.