|
|
@ -31,7 +31,7 @@ class _TabNavigatorState extends State<TabNavigator>
|
|
|
|
// await HiveStore.init();
|
|
|
|
// await HiveStore.init();
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// , const TextMePage()
|
|
|
|
// , const TextMePage()
|
|
|
|
_pages = [const HomePage() ,const UserPage()];
|
|
|
|
_pages = [const HomePage() , const TextMePage(),const UserPage()];
|
|
|
|
_tabController = TabController(
|
|
|
|
_tabController = TabController(
|
|
|
|
length: _pages.length, vsync: this, initialIndex: widget.index ?? 0);
|
|
|
|
length: _pages.length, vsync: this, initialIndex: widget.index ?? 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -59,8 +59,8 @@ class _TabNavigatorState extends State<TabNavigator>
|
|
|
|
List<BottomNavigationBarItem> _bottomNav = <BottomNavigationBarItem>[
|
|
|
|
List<BottomNavigationBarItem> _bottomNav = <BottomNavigationBarItem>[
|
|
|
|
_buildBottomBar("首页", Assets.icons.homeNoSelected.path,
|
|
|
|
_buildBottomBar("首页", Assets.icons.homeNoSelected.path,
|
|
|
|
Assets.icons.homeSelected.path),
|
|
|
|
Assets.icons.homeSelected.path),
|
|
|
|
// _buildBottomBar("群发", Assets.icons.nomass.path,
|
|
|
|
_buildBottomBar("群发", Assets.icons.nomass.path,
|
|
|
|
// Assets.icons.mass.path),
|
|
|
|
Assets.icons.mass.path),
|
|
|
|
_buildBottomBar(
|
|
|
|
_buildBottomBar(
|
|
|
|
"我的", Assets.icons.myNoselected.path, Assets.icons.mySelected.path)
|
|
|
|
"我的", Assets.icons.myNoselected.path, Assets.icons.mySelected.path)
|
|
|
|
];
|
|
|
|
];
|
|
|
|