_tabController,
children: [
_buildTabView1(),
_buildTabView2(),
],
)
此时切换tab时,页面会重建..._tabController,
children: [
_buildTabView1(_newsKey),
_buildTabView2(_technologyKey...(
height: 100,
width: 100,
color: Colors.red,
),
),
)
如何在State类中获取StatefulWidget...State createState() => _TestState();
}
class _TestState extends State{
}
如下,如何在...直接使用widget.data(推荐)。