I'm having trouble finding the CurrentPage/CurrentState index from a popular library called introduction_screen: ^3.0.2.
I want to replace the parameter of "globalFooter" with a certain condition.
As an example :
If the Intro screen is at the initial index (0), then display the Button widget. If not, then don't show any widgets.
globalFooter: isLastPage ? ElevatedButton() : Text(""),
How do I get the index of the CurrentPage/CurrentState? Previously, as a newbie in Flutter I had tried using "introKey.currentState?.animateScroll(0)" but that failed.