enabled jumping to the tapped step in the using_stepper example

This commit is contained in:
Nishant Srivastava
2017-08-25 21:30:15 -07:00
parent 2cd94b5647
commit 7c3f205d5d

View File

@ -54,6 +54,12 @@ class MyHomeState extends State<MyHome> {
type: StepperType.vertical,
// Know the step that is tapped
onStepTapped: (step) {
// On hitting step itself, change the state and jump to that step
setState(() {
// update the variable handling the current step value
// jump to the tapped step
current_step = step;
});
// Log function call
print("onStepTapped : " + step.toString());
},