no material widget found. flutter code example
Example 1: No Material widget found.
i solved this issue by adding Scaffold to my widget
Example 2: No Material widget found. TextField widgets require a Material widget ancestor.
Widget LoginPage() {
return new Scaffold(body: *your whole code*)
}