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

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

cart_stepper #

pub package

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/double, the number to show
  • stepper: int/double, the number to increasing or decreasing
  • size: double, widget size
  • axis: Axis, layout direction
  • numberSize: double, number spacer, default 2
  • didChangeCount: Function, @required to set the release counter
  • style: CartStepperStyle
  • elevation: double, display a shadow around this widget

CartStepperStyle:

  • 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
  • shape: BoxShape,
  • radius: Radius, the borderRadius of this widget, default caculating a roundedRectAngle
  • shadowColor: Color

Using #

Create a widget to show and modify a number:

Widget _buildStepper() {
  return CartStepperInt(
               count: _counter,
               size: 30,
               style: CartStepperStyle.fromTheme(Theme.of(context)).copyWith(activeForegroundColor: Colors.purple,)
               didChangeCount: (count) {
               setState(() {
                _counter = count;
               });
             },
          );
}

OnlineDemo #

51
likes
0
pub points
90%
popularity

Publisher

verified publishershirne.com

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on cart_stepper