项目结构:
class test extends StatefulWidget{
var title;
_MainUi createState() =>new _MainUi();
}
class _MainUi extends State<test> {
@override
Widgetbuild(BuildContext context) {
widget.title;//获取参数
}
}
项目结构:
class test extends StatefulWidget{
var title;
_MainUi createState() =>new _MainUi();
}
class _MainUi extends State<test> {
@override
Widgetbuild(BuildContext context) {
widget.title;//获取参数
}
}