checkpoint

This commit is contained in:
Christien Rioux 2023-08-07 23:03:26 -07:00
parent ee80dbf3a5
commit d965f674fc
13 changed files with 422 additions and 208 deletions

View file

@ -34,8 +34,8 @@ class MainPagerState extends ConsumerState<MainPager>
final _unfocusNode = FocusNode();
final pageController = PageController();
var _currentPage = 0;
final pageController = PageController();
final _selectedIconList = <IconData>[Icons.person, Icons.chat];
// final _unselectedIconList = <IconData>[
@ -235,6 +235,11 @@ class MainPagerState extends ConsumerState<MainPager>
onNotification: onScrollNotification,
child: PageView(
controller: pageController,
onPageChanged: (index) {
setState(() {
_currentPage = index;
});
},
//physics: const NeverScrollableScrollPhysics(),
children: List.generate(
_bottomBarPages.length, (index) => _bottomBarPages[index]),
@ -271,9 +276,6 @@ class MainPagerState extends ConsumerState<MainPager>
onTap: (index) async {
await pageController.animateToPage(index,
duration: 250.ms, curve: Curves.easeInOut);
setState(() {
_currentPage = index;
});
},
),