mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-13 18:58:53 +01:00
Tapping the same page in NavigationBar should do nothing
This commit is contained in:
parent
5459919fab
commit
33b26d5ca1
1 changed files with 4 additions and 0 deletions
|
@ -158,6 +158,10 @@ class _HomeState extends State<Home> with TickerProviderStateMixin {
|
|||
}
|
||||
|
||||
void _onTapNavItem(int index) {
|
||||
if (index == _nextPage) {
|
||||
return;
|
||||
}
|
||||
|
||||
_pageController.jumpToPage(index);
|
||||
setState(() {
|
||||
_nextPage = index;
|
||||
|
|
Loading…
Reference in a new issue