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

discontinued
outdated

A flutter package to create easily customizable Horizontal and Vertical stepper.

example/lib/main.dart

import 'package:another_stepper/another_stepper.dart';
import 'package:another_stepper/dto/stepper_data.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  List<StepperData> stepperData = [
    StepperData(
      title: "Order Placed",
      subtitle: "Your order has beed placed",
    ),
    StepperData(
      title: "Preparing",
      subtitle: "Your order is being prepared",
    ),
    StepperData(
      title: "On the way",
      subtitle: "Our delivery executive is on the way to deliver your item",
    ),
    StepperData(
      title: "Delivered",
      subtitle: "Your order was delivered successfully",
    ),
  ];

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Padding(
            padding: const EdgeInsets.only(left: 20),
            child: 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,
            ),
          ),
        ),
      ),
    );
  }
}
84
likes
0
points
3.97k
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter package to create easily customizable Horizontal and Vertical stepper.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on another_stepper