|
|
|
|
@ -75,7 +75,7 @@ class _MyHomePageState extends State<LoginTabsWidget> with SingleTickerProviderS
|
|
|
|
|
loginTabs_index = (null == value) ? 0 : int.parse(value);
|
|
|
|
|
print('loginTabs_index = ${loginTabs_index}');
|
|
|
|
|
//用TabController实现顶部tab切换,并设置默认 Tab。initialIndex: loginTabs_index
|
|
|
|
|
_tabController = TabController(vsync: this, length: 2, initialIndex: loginTabs_index);
|
|
|
|
|
_tabController = TabController(vsync: this, length: 1, initialIndex: loginTabs_index);
|
|
|
|
|
|
|
|
|
|
//监听 _tabController 切换事件
|
|
|
|
|
_tabController.addListener(() {
|
|
|
|
|
@ -146,9 +146,9 @@ class _MyHomePageState extends State<LoginTabsWidget> with SingleTickerProviderS
|
|
|
|
|
my_Tabs.MyTab(
|
|
|
|
|
text: " 密码登录 ",
|
|
|
|
|
style: TextStyle(fontSize: 18.0, fontWeight: FontWeight.bold)),
|
|
|
|
|
my_Tabs.MyTab(
|
|
|
|
|
text: " 刷脸登录 ",
|
|
|
|
|
style: TextStyle(fontSize: 18.0, fontWeight: FontWeight.bold))
|
|
|
|
|
// my_Tabs.MyTab(
|
|
|
|
|
// text: " 刷脸登录 ",
|
|
|
|
|
// style: TextStyle(fontSize: 18.0, fontWeight: FontWeight.bold))
|
|
|
|
|
],
|
|
|
|
|
// tabs: <Widget>[
|
|
|
|
|
// Text(" 密码登录 ", style: TextStyle(fontSize: 18.0, fontWeight: FontWeight.bold)),
|
|
|
|
|
@ -165,7 +165,7 @@ class _MyHomePageState extends State<LoginTabsWidget> with SingleTickerProviderS
|
|
|
|
|
physics: new NeverScrollableScrollPhysics(),
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
LoginByName3(height: _height),
|
|
|
|
|
FaceLogin2(),
|
|
|
|
|
// FaceLogin2(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
// bMayLogin
|
|
|
|
|
|