linear_step_indicator 1.0.0 copy "linear_step_indicator: ^1.0.0" to clipboard
linear_step_indicator: ^1.0.0 copied to clipboard

outdated

A Flutter package for adding beautiful step indicators in your apps.

linear_step_indicator #

A Flutter package for adding beautiful step indicators in your apps.

Install #

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

dependencies:
  linear_step_indicator: ^1.0.0

Import the package in your project:

import 'package:linear_step_indicator/linear_step_indicator.dart';

Getting Started #

Examples:

LinearStepIndicator(
          steps: 3,
          controller: PageController(),
          labels: List<String>.generate(3, (index) => "Step ${index + 1}"),
          complete: () {
            //typically, you'd want to put logic that returns true when all the steps
            //are completed here
            return Future.value(true);
          },
        )

Indicator

StepIndicatorPageView(
        steps: 3,
        indicatorPosition: IndicatorPosition.top,
        labels: List<String>.generate(3, (index) => "Step ${index + 1}"),
        controller: _pageController,
        complete: () {
          //typically, you'd want to put logic that returns true when all the steps
          //are completed here
          return Future.value(true);
        },
        children: List<Widget>.generate(
          3,
          (index) => Container(
            color: Color(0xffffffff),
            child: Center(
              child: Text(
                "Page ${index + 1}",
                style: TextStyle(
                  fontSize: 24,
                  fontWeight: FontWeight.w500,
                ),
              ),
            ),
          ),
        ),
      )

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.

53
likes
0
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for adding beautiful step indicators in your apps.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on linear_step_indicator