Skip to content
pubscout

cart_stepper

4.3.0, released 3 years ago by shirne.com

A fully customizable Flutter widget to get count, applicable for e-commerce cart counts.

WASM-ready
$ flutter pub add cart_stepper
Source repository

What it does

Provides a customizable widget with plus and minus buttons to increment and decrement numeric values (integers or doubles). It supports custom styles, themes, layout directions, and editing modes.

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

Use it when

  • You need an e-commerce cart quantity stepper widget.
  • You want a customizable counter widget with increment and decrement buttons.

Skip it when

  • You need complex form validation or non-numeric inputs.

Strengths

  • Supports both integer and double values.
  • Highly customizable styling and theming via CartStepperStyle.
  • Supports layout direction and custom icons.

Weaknesses

  • Limited to increment/decrement count operations.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
Widget _buildStepper() {
  return CartStepperInt(
        count: _counter,
        size: 30,
        style: CartStepperTheme.of(context).copyWith(activeForegroundColor: Colors.purple,)
        didChangeCount: (count) {
        setState(() {
        _counter = count;
        });
      },
  );
}

Alternatives

Packages that do the same job and could replace cart_stepper.

  • uiblock

    Easily block or unblock the UI with loading states in Flutter apps.

  • flutter_earth_globe

    An interactive and fully customizable 3D Globe widget written in pure Dart.

  • sheet

    A fully customizable draggable bottom sheet for Flutter.

  • load_switch

    A toggle switch widget with an integrated loading state for asynchronous actions.

Works with

Packages commonly used together with cart_stepper: ones it builds on, ones built on it, and its own family.