Skip to content
pubscout

number_inc_dec

0.8.0, released 5 years ago by abhilash-chandran.com

A Flutter widget accepting numeric values with increment and decrement buttons.

WASM-ready
$ flutter pub add number_inc_dec
Source repository

What it does

Provides a TextFormField combined with buttons and logic to handle incrementing and decrementing numerical values. Supports minimum/max limits, step factors, and custom layouts.

AI-written summary of version 0.8.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a numeric input field with built-in plus and minus buttons.
  • You want to enforce minimum and maximum value constraints on numeric inputs.

Skip it when

  • You need standard text input or non-numeric form fields.
  • You require a slider or complex multi-value picker instead of a stepper field.

Strengths

  • Configurable increment/decrement factors and button layouts.
  • Built-in support for min/max clamping and integer or double values.

Weaknesses

  • Limited to numeric input stepper use cases.
  • Requires a TextEditingController for proper operation.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
NumberInputWithIncrementDecrement(
   controller: TextEditingController(),
   min: -3,
   max: 3,
)

Alternatives

Packages that do the same job and could replace number_inc_dec.