dynamic_stepper

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

dynamic stepper

dynamic_stepper #
Ability to dynamically create or remove steps in Material Stepper.
The solution was found in the following question: https://stackoverflow.com/a/52929474/6845731
Credits: https://github.com/sanket143
Features #

Getting started #
Just add the following import where it's needed:
import 'package:dynamic_stepper/dynamic_stepper.dart';
copied to clipboard
Usage #
Replace the original Stepper with DynamicStepper:
final steps = [
DynamicStep(
title: const Text('Step 1 title'),
content: Container(
alignment: Alignment.centerLeft,
child: const Text('Content for Step 1'),
),
),
const DynamicStep(
title: Text('Step 2 title'),
content: Text('Content for Step 2'),
),
];
//...
DynamicStepper(
currentStep: _index,
onStepCancel: () {
// Handle cancel
},
onStepContinue: () {
// Handle continue
},
onStepTapped: (int index) {
// Handle tapped
},
steps: steps,
)
copied to clipboard
NOTE: The name of the properties has been replaced to avoid conflicts with the original Stepper, so the Dynamic prefix has been added.
DynamicStepper
DynamicStep
DynamicStepType ...
Additional information #
Visit repository if you have questions, issues or more info.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.