easy_stepper 0.1.4 copy "easy_stepper: ^0.1.4" to clipboard
easy_stepper: ^0.1.4 copied to clipboard

A fully customizable, beautiful and easy to use stepper. The stepper widgets help you to show or collect information from users using organized steps.

easy_stepper #

Pub Version (including pre-releases) GitHub issues GitHub closed issues GitHub last commit GitHub code size in bytes

About #

A fully customizable, beautiful and easy to use stepper.

Description #

The stepper widgets help you to show or collect information from users using organized steps.

Install #

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  easy_stepper: <latest_version>

In your library add the following import:

import 'package:easy_stepper/easy_stepper.dart';

Getting started #

  • Simply import package:easy_stepper/easy_stepper.dart.

  • Important: The direction argument controls whether the stepper is displayed horizontally or vertically. A horizontal Stepper can be wrapped within a Column with no issues. However, if wrapped within a row, it must also be wrapped within the built-in Expanded widget. The same applies to the vertical Stepper.

  • Validation: To enable validation before the next step is reached, set the steppingEnabled property to an appropriate value in a StatefulWidget.

  • Controlling Steppers: All steppers are controlled using the activeStep property. You can control a stepper by tapping individual steps.

    • See examples here.
  • To customize the color, border, etc., wrap a stepper widget inside a Container and specify it's decoration argument.

Example:

    EasyStepper(
         activeStep: activeStep,
         lineLength: 90,
         lineType: LineType.normal,
         steps: const [
           EasyStep(
             icon: Icon(CupertinoIcons.cart),
             activeIcon: Icon(CupertinoIcons.cart),
             finishIcon: Icon(Icons.check_circle_outline_rounded),
             title: 'Cart',
           ),
           EasyStep(
             icon: Icon(CupertinoIcons.info),
             activeIcon: Icon(CupertinoIcons.info),
             title: 'Address',
           ),
           EasyStep(
             icon: Icon(CupertinoIcons.cart_fill_badge_plus),
             activeIcon: Icon(CupertinoIcons.cart_fill_badge_plus),
             title: 'Checkout',
           ),
           EasyStep(
             icon: Icon(CupertinoIcons.money_dollar),
             activeIcon: Icon(CupertinoIcons.money_dollar),
             title: 'Payment',
           ),
           EasyStep(
             icon: Icon(Icons.file_present_rounded),
             activeIcon: Icon(Icons.file_present_rounded),
             title: 'Order Details',
           ),
           EasyStep(
             icon: Icon(Icons.check_circle_outline),
             activeIcon: Icon(Icons.check_circle_outline),
             title: 'Finish',
           ),
         ],
         onStepReached: (index) => setState(() => activeStep = index),
    ),

Features #

Simple to use icon stepper widget, wherein each icon defines a step. Hence, the total number of icons represents the total number of available steps. See Example.

Horizontal-Stepper #

  • With Title:

Horizontal-Stepper

  • Without Title:

Horizontal-Stepper-2

  • Normal Line:

Horizontal-Stepper-3

  • With Line Text:

Horizontal-Stepper-4

Vertical-Stepper #

Vertical-Stepper Vertical-Stepper-3 Vertical-Stepper-2 Vertical-Stepper-4

Feedback #

  • Please file an issue here.

  • For more information please send me an email or connect with me.

Contributions #

Feel free to contribute to this project.

If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue.
If you fixed a bug or implemented a feature, please send a pull request.

Connect with me #

GitHub LinkedIn Facebook Twitter

Please Support #

263
likes
0
pub points
98%
popularity

Publisher

unverified uploader

A fully customizable, beautiful and easy to use stepper. The stepper widgets help you to show or collect information from users using organized steps.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, lottie

More

Packages that depend on easy_stepper