SSwitcher constructor
const
SSwitcher({
- Key? key,
- required String valueText,
- String? title,
- TextStyle? titleStyle,
- String? titleTooltip,
- Widget? customPrefix,
- VoidCallback? onDecrement,
- VoidCallback? onIncrement,
- bool enableDecrement = true,
- bool enableIncrement = true,
- String? suffixText,
- TextStyle? suffixTextStyle,
- Widget? customSuffix,
- Decoration? containerDecoration,
- EdgeInsetsGeometry containerPadding = const EdgeInsets.symmetric(horizontal: 10, vertical: 8),
- Decoration? valueContainerDecoration,
- EdgeInsetsGeometry valueContainerPadding = const EdgeInsets.symmetric(horizontal: 10, vertical: 4),
- EdgeInsetsGeometry valueContainerMargin = const EdgeInsets.symmetric(horizontal: 8),
- double valueMinWidth = 26,
- IconData decrementIcon = Icons.remove_circle_outline_rounded,
- IconData incrementIcon = Icons.add_circle_outline_rounded,
- double iconSize = 18,
- Color? iconColor,
- TextStyle? valueTextStyle,
Implementation
const SSwitcher({
super.key,
required this.valueText,
this.title,
this.titleStyle,
this.titleTooltip,
this.customPrefix,
this.onDecrement,
this.onIncrement,
this.enableDecrement = true,
this.enableIncrement = true,
this.suffixText,
this.suffixTextStyle,
this.customSuffix,
this.containerDecoration,
this.containerPadding =
const EdgeInsets.symmetric(horizontal: 10, vertical: 8),
this.valueContainerDecoration,
this.valueContainerPadding =
const EdgeInsets.symmetric(horizontal: 10, vertical: 4),
this.valueContainerMargin = const EdgeInsets.symmetric(horizontal: 8),
this.valueMinWidth = 26,
this.decrementIcon = Icons.remove_circle_outline_rounded,
this.incrementIcon = Icons.add_circle_outline_rounded,
this.iconSize = 18,
this.iconColor,
this.valueTextStyle,
});