I am using android studio and flutter. I want to build the screen as shown below in the image:screen Image
let’s say I have 4 screens. on the first screen, the bar will load up to 25%. the user will move to next screen by clicking on continue, the linearbar will load up to 50% and so on. the user will get back to previous screens by clicking on the back button in the appbar.
- I tried stepper but it doesn’t serve my purpose.
2
Answers
You can use the widget
LinearProgressIndicator(value: 0.25,)
for the first screen and withvalue: 0.5
for the second screen etc.If you want to change the bar value within a screen, just use StatefullWidget’s
setState()
, or any state management approaches will do.