IncrementDecrementWidget constructor
const
IncrementDecrementWidget({
- Key? key,
- required int quantity,
- int? maxQuantity,
- int? minValue,
- ValueUpdate? onChanged,
- Color? backgroundColor,
- Color? iconColor,
- double? elevation,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? valuePadding,
- TextStyle? quantityTextStyle,
- double? borderRadius,
- double? width,
- double? height,
- EdgeInsetsGeometry? buttonPadding,
- EdgeInsetsGeometry? buttonMargin,
- double? buttonWidth,
- double? buttonHeight,
- Color? splashColor,
- Color? borderColor,
- InteractiveInkFeatureFactory? splashFactory,
- Widget? incrementIcon,
- Widget? decrementIcon,
- OutlinedBorder? buttonShape,
- Duration longPressInterval = const Duration(milliseconds: 100),
- MainAxisAlignment? alignment,
Creates an IncrementDecrementWidget with the specified properties.
The quantity
parameter is required and sets the initial value.
Implementation
const IncrementDecrementWidget({
super.key,
required this.quantity,
this.maxQuantity,
this.minValue,
this.onChanged,
this.backgroundColor,
this.iconColor,
this.elevation,
this.margin,
this.valuePadding,
this.quantityTextStyle,
this.borderRadius,
this.width,
this.height,
this.buttonPadding,
this.buttonMargin,
this.buttonWidth,
this.buttonHeight,
this.splashColor,
this.borderColor,
this.splashFactory,
this.incrementIcon,
this.decrementIcon,
this.buttonShape,
this.longPressInterval = const Duration(milliseconds: 100),
this.alignment,
});