count_stepper 0.0.4 count_stepper: ^0.0.4 copied to clipboard
A simple Flutter widget that allows you to increment/decrement a value.
Count Stepper for Flutter #
A simple Flutter widget that allows you to increase/decrease a value.
Screenshots #
Customize individual color #
Example #
import 'package:flutter/material.dart';
import 'package:count_stepper/count_stepper.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Scaffold(
body: CountStepper(
iconColor: Theme.of(context).primaryColor,
defaultValue: 2,
max: 10,
min: 1,
iconDecrementColor: Colors.red,
splashRadius: 25,
onPressed: (value) {},
),
),
);
}
}
Usage #
To use this package, add count_stepper
as a dependency in your pubspec.yaml file.