NumberSelector constructor
const
NumberSelector({
- Key? key,
- int? max,
- int? min,
- int step = 1,
- bool enabled = true,
- dynamic onUpdate(
- int number
- int current = 0,
- double height = 50.0,
- double? width = 350.0,
- double contentPadding = 20.0,
- double verticalDividerPadding = 5.0,
- double borderRadius = 2.0,
- Color borderColor = Colors.black26,
- Color dividerColor = Colors.black12,
- Color backgroundColor = Colors.white,
- double borderWidth = 1.0,
- Color iconColor = Colors.black54,
- IconData incrementIcon = Icons.chevron_right,
- IconData decrementIcon = Icons.chevron_left,
- IconData maxIcon = Icons.last_page,
- IconData minIcon = Icons.first_page,
- bool showMinMax = true,
- bool showSuffix = true,
- bool hasCenteredText = false,
- bool hasDividers = true,
- bool hasBorder = true,
- String prefixNaming = 'of',
- String? incrementTooltip = 'Increment',
- String? decrementTooltip = 'Decrement',
- String? maxTooltip = 'Max',
- String? minTooltip = 'Min',
- TextStyle? textStyle,
- Duration delayUpdate = Duration.zero,
Implementation
const NumberSelector({
super.key,
this.max,
this.min,
this.step = 1,
this.enabled = true,
this.onUpdate,
this.current = 0,
this.height = 50.0,
this.width = 350.0,
this.contentPadding = 20.0,
this.verticalDividerPadding = 5.0,
this.borderRadius = 2.0,
this.borderColor = Colors.black26,
this.dividerColor = Colors.black12,
this.backgroundColor = Colors.white,
this.borderWidth = 1.0,
this.iconColor = Colors.black54,
this.incrementIcon = Icons.chevron_right,
this.decrementIcon = Icons.chevron_left,
this.maxIcon = Icons.last_page,
this.minIcon = Icons.first_page,
this.showMinMax = true,
this.showSuffix = true,
this.hasCenteredText = false,
this.hasDividers = true,
this.hasBorder = true,
this.prefixNaming = 'of',
this.incrementTooltip = 'Increment',
this.decrementTooltip = 'Decrement',
this.maxTooltip = 'Max',
this.minTooltip = 'Min',
this.textStyle,
this.delayUpdate = Duration.zero,
});