A counter widget for flutter that support different kinds of customization.

Overview

Customizable Counter

A counter widget that support different kinds of customization.

Sample Customizable Counter

Installation

From pubspec.yaml

Add the following line to pubspec.yaml:

dependencies:
  customizable_counter: <last-release>

and

flutter pub get

From cli

run following command:

flutter pub add customizable_counter

Basic setup

Complete example available here.

@override
Widget build(BuildContext context) =>
    CustomizableCounter(
      borderColor: Colors.yellow,
      borderWidth: 5,
      borderRadius: 100,
      backgroundColor: Colors.amberAccent,
      buttonText: "Add Item",
      textColor: Colors.white,
      textSize: 22,
      count: 0,
      step: 1,
      minCount: 0,
      maxCount: 10,
      incrementIcon: const Icon(
        Icons.add,
        color: Colors.white,
      ),
      decrementIcon: const Icon(
        Icons.remove,
        color: Colors.white,
      ),
      onCountChange: (count) {

      },
      onIncrement: (count) {

      },
      onDecrement: (count) {

      },
    );

Parameters

In order to customize the widget ui there are several attributes that are supported by this package:

Attribute Type Default Required Description
borderColor Color null No color of widget border
borderWidth double null No width of widget border
borderRadius double null No radius of widget border
backgroundColor Color null No color of widget background
buttonText String null No text that will shown on widget if counter value is zero.
textColor Color null No button title and counter text color
textSize double null No button title and counter text size
decrementIcon Widget null No icon widget that will be shown on left side and by clicking this widget the counter value will de decreased.
incrementIcon Widget null No icon widget that will be shown on right side and by clicking this widget the counter value will de increased.
count double 0 No the current value of the counter.
maxCount double double.maxFinite No the maximum value support for counter
minCount double 0 No the minimum value support for counter
step double 1 No amount increased or decreased after clicking buttons.
showButtonText bool true No does shown button text when counter value is zero.
onCountChange Function(double c) null No called when the counter value change by clicking button.
onIncrement Function(double c) null No called when the counter value increment by clicking Increment button.
onCountChange Function(double c) null No called when the counter value decrement by clicking Decrement button.
You might also like...

Flutter Counter is a plugin written in dart for flutter which is really simple and customizeable.

 Flutter Counter is a plugin written in dart for flutter which is really simple and customizeable.

Flutter Counter (iOS & Android) Description Flutter Counter is a plugin written in dart for flutter which is really simple and customizeable. Create i

Sep 18, 2022

counter button flutter plugin

counter_button Counter Button is a flutter library that allows you to create a button with animation effects when you increase or decrease the counter

Dec 20, 2021

TestingApp - Just an Counter UI using Flutter

TestingApp - Just an Counter UI using Flutter

Flutter Counter App Just an Counter UI using Flutter UI Thank You! Please ⭐ this

Jan 8, 2022

Contador - People counter Application developed with Flutter

Contador - People counter Application developed with Flutter

Contador de pessoas Aplicativo desenvolvido com Flutter, ele realiza o controle

Feb 9, 2022

Counter coins project - Flutter client

Counter coins project - Flutter client

Counter Coins Client Client made with Flutter for Counter Coins project! Table of Contents About the Project Built With Getting Started Prerequisites

Apr 2, 2022

GetX tutorial with simple counter app.

getx_counter GetX tutorial 1, simple counter app. Getting Started This project is a starting point for a Flutter application. A few resources to get y

Jan 3, 2022

Provider Demo - Simple Provider using provider update counter and apply a timer also increase and decrease that value by pressing buttons

Provider Demo - Simple Provider using provider update counter and apply a timer also increase and decrease that value by pressing buttons

state_management simple Provider using provider update counter and apply a timer

Feb 2, 2022

Cell-phone - App to offer cell phone stores, operation with static data, login, registration, cell phone list, add to cart, cart counter

cell_phone App to offer cell phone stores, operation with static data, login, re

Feb 13, 2022

Counter provider - App para practicar el disenio de layouts con widgets mas comunes containers, stacks, row/columns, text fields

Counter provider - App para practicar el disenio de layouts con widgets mas comunes containers, stacks, row/columns, text fields

App para practicar el disenio de layouts con widgets mas comunes containers, sta

Feb 16, 2022
Comments
Releases(1.0.4)
Owner
Md. Imam Hossain
Love Programming | Problem Solving | Mobile Application Developer | Android | Flutter
Md. Imam Hossain
MindInventory 15 Sep 5, 2022
Tasawq App — Flutter framework and Firebase An application that objectives to display all nearby stores of all kinds and real estate.

Tasawq App — Flutter framework and Firebase An application that objectives to display all nearby stores of all kinds and real estate. Multi-vendor, standard user login to view nearby products and stores for rating, follow-up, messaging and more

null 1 Nov 10, 2022
Plumbr - An app that provides all kinds of services from household to plumbing works

Plumbr Plumbr is an app that provides all kinds of services from household to pl

Adam Oommen Jacob 13 Oct 20, 2022
A package that gives us a modern way to show animated border as a placeholder while loading our widget with easy customization and ready to use.

A package that gives us a modern way to show animated border as a placeholder while loading our widget with easy customization and ready to use.

Mohit Chauhan 8 Oct 3, 2022
A CustomPaint example where we can draw with different colors and different stroke sizes

CustomPaint A CustomPaint example where we can draw with different colors and different stroke sizes. A Flutter application which runs on iOS, Android

Behruz Hurramov 0 Dec 27, 2021
Following Along with a tutorial and adding differing customization to learn Dart and Flutter

flutter_ss_portfolio A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you sta

Midnight 0 Nov 28, 2021
🔥🚀 Flutter package to create Pin code input text field with every pixel customization possibility 🎨 with beautiful animations

Flutter PinPut From Tornike ?? ?? Flutter package to create Pin code input (OTP) text field with every pixel customization possibility ?? and beautifu

Tornike 451 Jan 2, 2023
A Flutter step_tracker plugin is collect information from user and display progress through a sequence of steps. this plugin also have privilege for fully customization from user side. like flipkart, amazon, myntra, meesho.

step_tracker plugin A Flutter step_tracker plugin is collect information from user and display progress through a sequence of steps. this plugin also

Roshan nahak 5 Oct 21, 2022
A UI library for easily adding audio waveforms to your apps, with several customization options

A UI library for easily adding audio waveforms to your apps, with several custom

RutvikTak 64 Dec 11, 2022
This package supports an animated icon with some customization.

animated_icon This package supports an animated icon with some customization. It includes an icon type, animation as well as onTap() parameters throug

MindInventory 12 Dec 23, 2022