cart_stepper 1.0.1 copy "cart_stepper: ^1.0.1" to clipboard
cart_stepper: ^1.0.1 copied to clipboard

A flutter numeric stepper input.

number_stepper #

A fully customizable Flutter Widget to get count. It can be applicable in e-commerce apps for getting cart count.

This package is Forked from AYNStepperView

Preview

Arguments #

  • count: int, the number to show
  • size: double, widget size
  • axis: Axis, layout direction
  • numberSize: double, number spacer, default 2
  • didChangeCount: Function, @required to set the release counter
  • activeForegroundColor: Color, text color when counter > 0
  • activeBackgroundColor: Color, background color when counter > 0
  • deActiveForegroundColor: Color, text color when counter == 0
  • deActiveBackgroundColor: Color, background color when counter == 0

Using #

Create a widget to load and edit an image:

Widget _buildStepper() {
  return CartStepper(
               count: _counter,
               size: 30,
               activeForegroundColor: Colors.purple,
               didChangeCount: (count) {
               setState(() {
                _counter = count;
               });
             },
          );
}


51
likes
120
pub points
90%
popularity

Publisher

verified publishershirne.com

A flutter numeric stepper input.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on cart_stepper