flutter_elegant_number_button 0.0.6 copy "flutter_elegant_number_button: ^0.0.6" to clipboard
flutter_elegant_number_button: ^0.0.6 copied to clipboard

Flutter Elegant Number Button is a plugin written in dart for flutter which is really simple and customizeable.

Flutter Elegant Number Button (iOS & Android) #

Description #

Flutter Elegant Number Button 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

ElegantNumberButton(
  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.

9
likes
70
pub points
76%
popularity

Publisher

unverified uploader

Flutter Elegant Number Button is a plugin written in dart for flutter which is really simple and customizeable.

Homepage

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_elegant_number_button