textfield widgets require a material widget ancestor flutter code example
Example: No Material widget found. TextField widgets require a Material widget ancestor.
Widget LoginPage() {
return new Scaffold(body: *your whole code*)
}
Widget LoginPage() {
return new Scaffold(body: *your whole code*)
}