A flutter package to create easily customizable Horizontal and Vertical stepper.
In the dependencies
: section of your pubspec.yaml
, add the following line:
dependencies:
another_stepper: <latest_version>
Import the following in your working dart file:
import 'package:another_stepper/another_stepper.dart';
import 'package:another_stepper/dto/stepper_data.dart';
List<StepperData> stepperData = [
StepperData(
title: "USA",
subtitle: "Hello",
),
StepperData(
title: "Spain",
subtitle: "Hola",
),
StepperData(
title: "Turkey",
subtitle: "Merhaba",
),
];
AnotherStepper(
stepperList: stepperData,
stepperDirection: Axis.horizontal,
horizontalStepperHeight: 70,
)
AnotherStepper(
stepperList: stepperData,
stepperDirection: Axis.vertical,
horizontalStepperHeight: 70,
)
AnotherStepper(
stepperList: stepperData,
stepperDirection: Axis.horizontal,
horizontalStepperHeight: 70,
inverted: true,
)
AnotherStepper(
stepperList: stepperData,
stepperDirection: Axis.vertical,
horizontalStepperHeight: 70,
inverted: true,
)
AnotherStepper(
stepperList: stepperData,
stepperDirection: Axis.vertical,
horizontalStepperHeight: 70,
inverted: false,
activeIndex: 2,
)
AnotherStepper(
stepperList: stepperData,
stepperDirection: Axis.vertical,
horizontalStepperHeight: 70,
inverted: false,
activeIndex: 2,
gap: 60,
)
AnotherStepper(
stepperList: stepperData,
stepperDirection: Axis.horizontal,
horizontalStepperHeight: 70,
inverted: false,
activeIndex: 2,
gap: 60,
)
AnotherStepper(
stepperList: stepperData,
stepperDirection: Axis.vertical,
horizontalStepperHeight: 70,
inverted: false,
activeIndex: 2,
barThickness: 8,
)
AnotherStepper(
stepperList: stepperData,
stepperDirection: Axis.vertical,
horizontalStepperHeight: 70,
dotWidget: Container(
padding: EdgeInsets.all(8),
decoration: BoxDecoration(
color: Colors.red,
borderRadius: BorderRadius.all(Radius.circular(30))
),
child: Icon(Icons.navigate_next_sharp, color: Colors.white),
),
activeBarColor: Colors.red,
inActiveBarColor: Colors.grey,
activeIndex: 1,
)
AnotherStepper(
stepperList: stepperData,
stepperDirection: Axis.vertical,
horizontalStepperHeight: 70,
dotWidget: Container(
padding: EdgeInsets.all(8),
decoration: BoxDecoration(
color: Colors.red,
borderRadius: BorderRadius.all(Radius.circular(30))
),
child: Icon(Icons.fastfood, color: Colors.white),
),
activeBarColor: Colors.red,
inActiveBarColor: Colors.grey,
activeIndex: 2,
barThickness: 8,
)