Hey everyone!
I'm cloning a productivity app and everyday people start the main task. Let's say it's going to the gym and start workout.
After starting workout, the person has 5 different workouts to do. I want to show then randomly, so the first can be the 2ยฐ workout, and the next, the 5ยฐ.
I found something called stateful widget to do this, but apparently not supported by FlutterFlow yet. So I did one thing that would work but it isn't.
=> Built a page called "master". It receives a list of integers that can be [0, 2, 1, 3, 4] and is generated randomly with a function.
=> Upon reaching the master page (on page load action), if number in list = 0, it redirects to workout page A, if 1, it redirects to another, lets say B...
The problem: After finishing the workout, people need to press "next" button, so it navigates to the "master" page again and should redirect to another daughter. But it's not working...
Why is this happening?