Bonjour everyone,
On my travel app, i have a "AllMyTrips" page which display user's trip on a PageView widget
I added an "edit" button which show a BottomSheet.
Result i want: Display "current index" trip info that user can modify.
Unfortunatly, where ever on which page view i am, the Bottom Sheet, always display trip info from the first page view (current index 0)
I want Bottom Sheet to display info of current index PageView
Troubleshooting
Resolved
- Create a state variable on "AllMyTrip" page
- Add an action on Page View widget to update page state on swipe: My state variable: currentIndexRef (integer) set value: #pageview current index
maybe i am missing something
Yes
2 replies