嗨,我正试图在flutter中建立一个登录屏幕,但当我打开它时,我得到了下面的错误。未找到material微件文本字段微件需要material微件祖先class HomePage extends StatelessWidget { final TextEditingController passwordController = Text
I/flutter (22662): TextField widgets require a Materialwidget ancestor.In Flutter's
I/flutter (22662): material library, that material is represented by the MaterialwidgetBecause of this, many mater
DefaultMaterialLocalizations.delegate, ], home: new MyHomePage(title: 'Flutter Demo Home Page'),这是我的密码 localizationsDelegatesDefaultWidgetsLocalizations.delegate,
我正在使用VS代码在flutter中设置一个TextField小部件,我在TextFormField上得到了这个错误:I/flutter ( 3827): material library, that material is represented by the MaterialwidgetBecause of this, many <
我知道这个错误:
大约一秒之后,它就消失了。它在抱怨我的一个定制小部件中有一个IconButton。In Flutter's material library, that material is represented by the Materialwidget.To introduce a Materialwidget, you can either direc