mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-05-24 00:33:22 +08:00
added another demo_gif for horizontal mode in using_stepper example
This commit is contained in:
@ -4,7 +4,8 @@ A material stepper widget that displays progress through a sequence of steps. St
|
|||||||
|
|
||||||
Read [[Documentation](https://docs.flutter.io/flutter/material/Stepper-class.html)] [[Material Design Spec](https://material.io/guidelines/components/steppers.html)]
|
Read [[Documentation](https://docs.flutter.io/flutter/material/Stepper-class.html)] [[Material Design Spec](https://material.io/guidelines/components/steppers.html)]
|
||||||
|
|
||||||
<img src="demo_img.gif" height="600em" />
|
<img src="demo_img.gif" height="600em" /> <img src="demo_img_2.gif" height="600em" />
|
||||||
|
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
|
BIN
using_stepper/demo_img_2.gif
Normal file
BIN
using_stepper/demo_img_2.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 326 KiB |
@ -51,6 +51,8 @@ class MyHomeState extends State<MyHome> {
|
|||||||
// List the steps you would like to have
|
// List the steps you would like to have
|
||||||
steps: my_steps,
|
steps: my_steps,
|
||||||
// Define the type of Stepper style
|
// Define the type of Stepper style
|
||||||
|
// StepperType.horizontal : Horizontal Style
|
||||||
|
// StepperType.vertical : Vertical Style
|
||||||
type: StepperType.vertical,
|
type: StepperType.vertical,
|
||||||
// Know the step that is tapped
|
// Know the step that is tapped
|
||||||
onStepTapped: (step) {
|
onStepTapped: (step) {
|
||||||
|
Reference in New Issue
Block a user