Flutter – Tab
本文通過提供幾個例子介紹Flutter Tab的使用
http://cairuoyu.com/flutter_demo

Demo
使用TabController
使用時需要with TickerProviderStateMixin
List<Tab> tabs = <Tab>[
Tab(text: 'tab1'),
Tab(text: 'tab2'),
];
List<Widget> tabBarViews = <Widget>[
Center(child: Text('tabPage1')),
Center(child: Text('tabPage2')),
];
class TabSimple extends StatefulWidget {
@override
_TabSimpleState createState() => _TabSimpleState();
}
class _TabSimpleState extends State<TabSimple> with TickerProviderStateMixin {
TabController _tabController;
@
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/266720.html
標籤:區塊鏈
上一篇:[幣萌研究院] 投研報告 - Taraxa (TARA)
下一篇:FIL是合法的嗎?
