Created
January 23, 2020 18:45
-
-
Save SandroMaglione/39eb9145bc0f3cdaa119afde01200648 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:step_progress_indicator/step_progress_indicator.dart'; | |
class ExampleStepProgressIndicator extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
StepProgressIndicator( | |
totalSteps: 10, | |
currentStep: 8, | |
onTap: (index) { | |
return () { | |
print('$index step pressed'); | |
}; | |
}, | |
), | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment