IncrementDecrementWidget.minimal constructor

IncrementDecrementWidget.minimal({
  1. required int quantity,
  2. required int maxQuantity,
  3. required int minValue,
  4. required void onIncrement(),
  5. required void onDecrement(),
  6. Color? iconColor,
})

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
  );
}