FlutterCounter
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!
Install / Use
/learn @salmaanahmed/FlutterCounterREADME
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!
<br> <img height="400" src="https://github.com/salmaanahmed/flutterCounter/blob/master/screenshots/gif-counter-control.gif" /> <br>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
Related Skills
node-connect
354.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
