flutter No material widget found textfield widgets require a material widget ancestor

Error states that TextField widgets require a Material widget ancestor. Simply wrapping your whole loginWidget into Scaffold will solve the problem.

Widget LoginPage() {
   return new Scaffold(body: *your whole code*)
}

  

    原文作者:诗意的活着
    原文地址: https://www.cnblogs.com/wupeng88/p/9621224.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞