As you can see that the SlidingCardsView() is called below the tabs, but I want to open the SlidingCardsView() on clicking the recent tab and further PageOne() to Nearby and PageTwo() to notice tabs. Can anyone help me with this?.
Hey, I can see two approaches to that.
One is to expose a public function from SlidingCardView, create the GlobalKey in the parent widget and pass it to the SlidingCardView.
This way you can do key.currentState.changePage(index).
Inside this function, you can call pageController to animate to the given page.
There's a stateless tabs page with two constructors of text and isSelected.
As you can see that the SlidingCardsView() is called below the tabs, but I want to open the SlidingCardsView() on clicking the recent tab and further PageOne() to Nearby and PageTwo() to notice tabs. Can anyone help me with this?.