vertical_steps_indicator 0.0.1 copy "vertical_steps_indicator: ^0.0.1" to clipboard
vertical_steps_indicator: ^0.0.1 copied to clipboard

A simple flutter steps indicator widget.

Vertical Steps Indicator Widget #

A Flutter package for customizable steps indicators, perfect for visualizing multi-step processes in your app.

Features #

  • Default Steps Indicator: Simple and clean indicator design.
  • Dashed Steps Indicator: Stylish dashed lines for a modern look.
  • Customizable Colors: Easily set custom indicator, background, and border colors.
  • Flexible Layout: Supports dynamic steps and current step customization.

Installation #

Add the package to your pubspec.yaml file:

dependencies:
  vertical_steps_indicator: ^0.0.1

Then run:

flutter pub get

Usage #

Here is an example of how to use the StepsIndicatorWidget:

dartColumn(
  crossAxisAlignment: CrossAxisAlignment.start,
  children: [
    Text(
      'Default Steps Indicator',
      style: TextStyle(
        fontSize: 16,
        fontWeight: FontWeight.w600,
        color: Colors.black,
      ),
    ),
    StepsIndicatorWidget(
      steps: steps,
      currentStep: currentStep,
    ),
    SizedBox(height: 16),
    Text(
      'Dashed Steps Indicator',
      style: TextStyle(
        fontSize: 16,
        fontWeight: FontWeight.w600,
        color: Colors.black,
      ),
    ),
    StepsIndicatorWidget(
      steps: steps,
      currentStep: currentStep,
      lineType: LineType.dashed,
    ),
    SizedBox(height: 16),
    Text(
      'Default Steps Indicator with Custom Color',
      style: TextStyle(
        fontSize: 16,
        fontWeight: FontWeight.w600,
        color: Colors.black,
      ),
    ),
    StepsIndicatorWidget(
      steps: steps,
      currentStep: currentStep,
      indicatorColor: Colors.teal,
      backgroundColor: Colors.pink.shade100,
      borderColor: Colors.teal.shade200,
    ),
    SizedBox(height: 16),
    Text(
      'Dashed Steps Indicator with Custom Color',
      style: TextStyle(
        fontSize: 16,
        fontWeight: FontWeight.w600,
        color: Colors.black,
      ),
    ),
    StepsIndicatorWidget(
      steps: steps,
      currentStep: currentStep,
      indicatorColor: Colors.teal,
      backgroundColor: Colors.pink.shade100,
      borderColor: Colors.teal.shade200,
      lineType: LineType.dashed,
    ),
  ],
)

Examples #

Default Steps Indicator: #

Default Example

Dashed Steps Indicator: #

Dashed Example

Default Steps Indicator with Custom Colors: #

Default Custom Example

Dashed Steps Indicator with Custom Colors: #

Dashed Custom Example

Customization #

Properties #

  • steps: Total number of steps in the indicator.
  • currentStep: The currently active step.
  • indicatorColor: The color of the step indicators.
  • backgroundColor: The background color of the steps.
  • borderColor: The border color for the step indicators.
  • lineType: LineType.solid or LineType.dashed.

Example App #

Check out the example directory for a complete EXAMPLE app.

License #

This project is licensed under the MIT License - see the LICENSE file for details.

2
likes
140
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

A simple flutter steps indicator widget.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on vertical_steps_indicator