Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

flutter counter (ios & android)

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!

flutter counter

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.


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.