Skip to content
On this page

NumberStepper

A compact quantity control with increment and decrement actions.

NumberStepper in FluttyUINumberStepper in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

Usage

const ui.NumberStepper(
  defaultValue: 1,
  min: 1,
  max: 10,
)

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

NumberStepper

const NumberStepper({
  super.key,
  this.value,
  this.defaultValue = 0,
  this.onChanged,
  this.min = 0,
  this.max,
  this.step = 1,
  this.isDisabled = false,
  this.size,
  this.onRemove,
  this.formatter,
  this.semanticLabel = 'Quantity',
  this.motion,
});
ParameterTypeRequiredDefault
keyKey?Nonull
valuedouble?Nonull
defaultValuedoubleNo0
onChangedValueChanged<double>?Nonull
mindoubleNo0
maxdouble?Nonull
stepdoubleNo1
isDisabledboolNofalse
sizeNumberStepperSize?Nonull
onRemoveVoidCallback?Nonull
formatterString Function(double value)?Nonull
semanticLabelStringNo'Quantity'
motionComponentMotion?Nonull

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/controls/number_stepper/number_stepper.dart

This reference is generated from the NumberStepper declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI