count_button 1.0.1 copy "count_button: ^1.0.1" to clipboard
count_button: ^1.0.1 copied to clipboard

Count Button

CountButton #

pub package

Count Button is a Flutter package that allows you to easily implement a customizable item count widget with increment and decrement buttons. This widget is particularly useful in scenarios where you need to manage the quantity of items, such as in a shopping cart or inventory management system. for Android, iOS, macOS, Windows, Linux and Web

Screenshot

features #

  • Increment and decrement buttons for adjusting the item count.
  • Define the minimum and maximum values for the item count.
  • Customizable button icon, colors, sizes, and text styles.
  • Callback function to handle changes to the item count.

Platform Support #

Android iOS macOS Web Windows Linux
✔️ ✔️ ✔️ ✔️ ✔️ ✔️

Getting Started #

Add dependency #

dependencies:
  count_button: ^1.0.1 #latest version

This sample to use the CountButton widget in your Flutter app:

CountButton(
  selectedValue: countValue,
  minValue: 0,
  maxValue: 99,
  foregroundColor: Colors.white,
  onChanged: (value) {
    setState(() {
      countValue = value;
    });
  },
  valueBuilder: (value) {
    return Text(
      value.toString(),
      style: const TextStyle(fontSize: 20.0),
    );
  },
);
4
likes
140
points
36
downloads

Publisher

unverified uploader

Weekly Downloads

Count Button

Repository (GitHub)

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on count_button