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

Overview

Flutter Counter (iOS & Android)

Description

Flutter Counter is a plugin written in dart for flutter which is really simple and customizeable. Create it like any other widget, add params according to your need and presto! You have got the highly customizeable counter with callbacks. Zero boilerplate!



Getting Started

Create this widget as you do with other widgets

Counter(
  initialValue: _defaultValue,
  minValue: 0,
  maxValue: 10,
  step: 0.5,
  decimalPlaces: 1,
  onChanged: (value) { // get the latest value from here
    setState(() {
      _defaultValue = value;
    });
  },
),

Constructor Options

There are some required values and other are for the customization

  @required num initialValue    // default value
  @required this.minValue       // minimum value
  @required this.maxValue       // maximum value
  @required this.onChanged      // callback
  @required this.decimalPlaces  // decimal places you want to show the value of
  this.color                    // color of the buttons
  this.textStyle                // text style which displays the value
  this.step = 1                 // step you want to set to change value
  this.buttonSize = 25          // if you want to change size of button

Beautify your widget with provided customization. You can also change color and size of both buttons and text. Very simple to implement and looks awesome. You can find more details in sample app.

Contributions and Licence

FlutterCounter is available under the MIT license. See the LICENSE file for more info.

Pull requests are welcome! The best contributions will consist of substitutions or configurations for classes/methods known to block the main thread during a typical app lifecycle.

I would love to know if you are using Counter in your app, send an email to Salmaan Ahmed

Comments
  • Allow formatting count value with dart NumberFormat pattern

    Allow formatting count value with dart NumberFormat pattern

    Customisability can be increased if there was a way that the number being shown can be formatted from the user side with formatter string. A usual use case for me to add a currency sign after the number, which is not possible write now. A suggestion can be to pass an argument as a Dart NumberFormat pattern and parse the value on the view layer.

    Please let me know if this is possible, I would love to contribute by adding an PR if needed. Thanks.

    opened by shabab477 0
  • Version dependency with cupertino_icons: ^1.0.0 fails

    Version dependency with cupertino_icons: ^1.0.0 fails

    Because flutter_counter 1.0.3 depends on cupertino_icons ^0.1.2 and no versions of flutter_counter match >1.0.3 <2.0.0, flutter_counter ^1.0.3 requires cupertino_icons ^0.1.2. So, because app depends on both cupertino_icons ^1.0.0 and flutter_counter ^1.0.3, version solving failed. pub get failed (1; So, because app depends on both cupertino_icons ^1.0.0 and flutter_counter ^1.0.3, version solving failed.) Process finished with exit code 1

    opened by dgurudot 2
  • There are multiple heroes that share the same tag within a subtree.

    There are multiple heroes that share the same tag within a subtree.

    i have some error when i'm using this package. I have do some solutions like add hero tags in flutter_counter.dart file, but nothing happen and still error.

    opened by dimaseza 0
  • fixes Scheduler Exception

    fixes Scheduler Exception

    i was using your plugin in my project one Exception, i felt this could be one of the way to fix it. it could be not proper fix but here is fix for the same.

    opened by SurajLad 0
  • multiple tags with floating button

    multiple tags with floating button

    if after adding plugin in pubspec file, it shows error something like "multiple tags with floating button" so replace content in flutter counter file and test it with my method path : C:\flutter.pub-cache\hosted\pub.dartlang.org\flutter_counter-1.0.3\lib\flutter)counter.dart

    fix.txt

    opened by ZaheerUDDinBaber 1
Owner
Salmaan Ahmed
Salmaan Ahmed
Neha Tanwar 4 Feb 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

Walid Wazini 0 Jan 3, 2022
TestingApp - Just an Counter UI using Flutter

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

Saif Afridi 0 Jan 8, 2022
Contador - People counter Application developed with Flutter

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

Milena de Oliveira 1 Feb 9, 2022
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

Dylan Donné 2 Apr 2, 2022
A counter widget for flutter that support different kinds of customization.

Customizable Counter A counter widget that support different kinds of customization. Installation From pubspec.yaml Add the following line to pubspec.

Md. Imam Hossain 2 Sep 6, 2022
Eder Zambrano 0 Feb 13, 2022
null 0 Feb 16, 2022
Animation Examples: stepper Counter loading Ripple Circle Generator water Flow Animation Wave

AnimatioExamples(stepperCounter-loadingRippleCircleGenerator-waterFlowAnimationWave) A new Flutter project. Getting Started This project is a starting

Ahmed Abdelkader Khedr 8 Aug 3, 2022
Bitcoin Ticker App which will fetch you the real time Bitcoin exchange values written in Dart & Flutter

About This project is written completely in Dart & Flutter. The app will basically provide you the real time value of three major cryptocurrencies nam

null 0 Dec 21, 2021
A beautiful, secure and simple authenticator app that supports multiple protocols and services. Free and open source. Written in Flutter and Dart.

OpenAuth A beautiful, secure and simple authenticator app that supports multiple protocols and services. Free and open source. Written in Flutter and

Isaiah Collins Abetong 30 Aug 20, 2022
Mysql.dart - MySQL client for Dart written in Dart

Native MySQL client written in Dart for Dart See example directory for examples

null 41 Sep 22, 2022
This is the code for the POAPin app, which is written in Flutter and currently supports iOS, Android, and Web platforms.

POAPin This is the code for the POAPin app, which is written in Flutter and currently supports iOS, Android, and Web platforms. ?? Get the app Platfor

Glory Lab 15 Sep 1, 2022
Simple and fast Entity-Component-System (ECS) library written in Dart.

Fast ECS Simple and fast Entity-Component-System (ECS) library written in Dart. CPU Flame Chart Demonstration of performance for rotation of 1024 enti

Stanislav 7 Jul 22, 2022
Simple & Beautiful Note-taking app written in dart with flutter UI toolkit.

Keep Notes is a privacy oriented, secure , beautiful and fast note (s) taking application made in flutter. It supports various features like adding an

null 25 Sep 21, 2022
This is a simple Gantt chart generator written as Dart command line tool.

Gantt Chart Generator This is a simple Gantt chart generator written as Dart command line tool. Currently the tool generates an HTML/CSS Gantt chart.

John Lyon-Smith 1 Apr 26, 2022
A build system for Dart written in Dart

These packages provide libraries for generating, compiling and serving Dart code. Getting started with build_runner General FAQ Windows FAQ FAQ for Bu

Dart 634 Sep 16, 2022
Flutter simple image crop - A simple and easy to use flutter plugin to crop image on iOS and Android

Image Zoom and Cropping plugin for Flutter A simple and easy used flutter plugin to crop image on iOS and Android. Installation Add simple_image_crop

null 97 Dec 14, 2021