customizable_counter
1.0.4, released 4 years ago by an unverified publisher
A customizable counter widget supporting different styles and icons.
WASM-ready
What it does
Provides a customizable counter widget that allows incrementing and decrementing values. Supports custom borders, background colors, text styling, icons, and callbacks for state changes.
AI-written summary of version 1.0.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a quick counter widget with custom styling for shopping cart items or quantities.
- You want configurable min/max limits and step increments out of the box.
Skip it when
- You need complex state management integration or custom architectures beyond simple callbacks.
- You require non-numeric counters or completely bespoke layouts.
Strengths
- Highly customizable UI attributes like border color, radius, and background.
- Supports configurable min, max, and step values.
- Includes separate callbacks for increment, decrement, and general count changes.
Weaknesses
- Limited to a single counter widget use case.
- Does not include built-in state management bindings.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
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) {},
)Alternatives
Packages that do the same job and could replace customizable_counter.