smart_stepper 0.0.3
smart_stepper: ^0.0.3 copied to clipboard
A simple smart stepper package
A simple smart stepper package
Features #
This package help you to make nice custom stepper.
Example #
import 'package:flutter/material.dart';
import 'package:smart_stepper/smart_stepper.dart';
class SmartStepperExample extends StatefulWidget {
const SmartStepperExample({super.key});
@override
State<SmartStepperExample> createState() => _SmartStepperExampleState();
}
class _SmartStepperExampleState extends State<SmartStepperExample> {
int currentStep = 1;
int totalSteps = 4;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.blue,
title: const Text(
"Smart Stepper Example",
style: TextStyle(color: Colors.white),
),
),
body: Column(
children: [
SmartStepper(
currentStep: currentStep,
totalSteps: totalSteps,
onStepperTap: (value) {
setState(() {
currentStep = value;
});
},
)
],
),
);
}
}