I am making a validation form in a stepper format in flutter. Each step has a validation form.
When first opening the page, there is only one step. I want the user to click continue and get one more stepper (i.e Step 2 and get one more step by clicking continue in step 2.)
I have tried to change the number of steps by adding one more step to the list and updating when changeCurrentStepContinue is called, but it can't increase the number of steps showing error. On going back and again going forward, I get the updated list.
So how can I change the number of steps on the same page by clicking continue in each step?