IncrementDecrementWidget.minimal constructor
IncrementDecrementWidget.minimal({})
Implementation
factory IncrementDecrementWidget.minimal({
required int quantity,
required int maxQuantity,
required int minValue,
required void Function() onIncrement,
required void Function() onDecrement,
Color? iconColor,
}) {
return IncrementDecrementWidget(
quantity: quantity,
maxQuantity: maxQuantity,
minValue: minValue,
onIncrement: onIncrement,
onDecrement: onDecrement,
backgroundColor: Colors.transparent,
// Minimalist design
iconColor: iconColor,
elevation: 0.0,
// No elevation by default
margin: EdgeInsets.zero, // No margin for minimal design
);
}