-
-
Save afonsocraposo/98ae56fcd7ef4224c108b149e8a62fcf to your computer and use it in GitHub Desktop.
_handleTabChange
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// runs when the displayed tab changes | |
_handleTabChange() { | |
// if a button was tapped, change the current index | |
if (_buttonTap) _setCurrentIndex(_controller.index); | |
// this resets the button tap | |
if ((_controller.index == _prevControllerIndex) || | |
(_controller.index == _aniValue.round())) _buttonTap = false; | |
// save the previous controller index | |
_prevControllerIndex = _controller.index; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment