NumberSelector.plain constructor
NumberSelector.plain({
- 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 = 200.0,
- double contentPadding = 20.0,
- double verticalDividerPadding = 5.0,
- double borderRadius = 2.0,
- Color borderColor = Colors.black26,
- Color dividerColor = Colors.black12,
- Color backgroundColor = Colors.transparent,
- double borderWidth = 1.0,
- Color iconColor = Colors.black54,
- IconData incrementIcon = Icons.add,
- IconData decrementIcon = Icons.remove,
- IconData maxIcon = Icons.last_page,
- IconData minIcon = Icons.first_page,
- bool showMinMax = true,
- bool showSuffix = true,
- bool hasCenteredText = true,
- bool hasDividers = false,
- bool hasBorder = false,
- String prefixNaming = 'of',
- String? incrementTooltip,
- String? decrementTooltip,
- String? maxTooltip,
- String? minTooltip,
- TextStyle? textStyle,
- Duration delayUpdate = Duration.zero,
Implementation
factory NumberSelector.plain({
Key? key,
int? max,
int? min,
int step = 1,
bool enabled = true,
Function(int number)? onUpdate,
int current = 0,
double height = 50.0,
double width = 200.0,
double contentPadding = 20.0,
double verticalDividerPadding = 5.0,
double borderRadius = 2.0,
Color borderColor = Colors.black26,
Color dividerColor = Colors.black12,
Color backgroundColor = Colors.transparent,
double borderWidth = 1.0,
Color iconColor = Colors.black54,
IconData incrementIcon = Icons.add,
IconData decrementIcon = Icons.remove,
IconData maxIcon = Icons.last_page,
IconData minIcon = Icons.first_page,
bool showMinMax = true,
bool showSuffix = true,
bool hasCenteredText = true,
bool hasDividers = false,
bool hasBorder = false,
String prefixNaming = 'of',
String? incrementTooltip,
String? decrementTooltip,
String? maxTooltip,
String? minTooltip,
TextStyle? textStyle,
Duration delayUpdate = Duration.zero,
}) =>
NumberSelector(
key: key,
max: max,
min: min,
step: step,
enabled: enabled,
onUpdate: onUpdate,
current: current,
height: height,
width: width,
contentPadding: contentPadding,
verticalDividerPadding: verticalDividerPadding,
borderRadius: borderRadius,
borderColor: borderColor,
dividerColor: dividerColor,
backgroundColor: backgroundColor,
borderWidth: borderWidth,
iconColor: iconColor,
incrementIcon: incrementIcon,
decrementIcon: decrementIcon,
maxIcon: maxIcon,
minIcon: minIcon,
showMinMax: showMinMax,
showSuffix: showSuffix,
hasCenteredText: hasCenteredText,
hasDividers: hasDividers,
hasBorder: hasBorder,
prefixNaming: prefixNaming,
incrementTooltip: incrementTooltip,
decrementTooltip: decrementTooltip,
maxTooltip: maxTooltip,
minTooltip: minTooltip,
textStyle: textStyle,
delayUpdate: delayUpdate,
);