UNumericKeyboard constructor
const
UNumericKeyboard({
- required void onKeyTap(
- String value
- required VoidCallback onBackspace,
- required VoidCallback onBackspaceLongPress,
- Key? key,
- List<
UNumericKeyboardAction> actions = const <UNumericKeyboardAction>[], - UNumericKeyboardActionsPosition actionsPosition = UNumericKeyboardActionsPosition.right,
- double spacing = 8,
- double runSpacing = 8,
- double keyAspectRatio = 1.6,
- double borderRadius = 12,
- double elevation = 0,
- Color? backgroundColor,
- Color? foregroundColor,
- Color? actionBackgroundColor,
- Color? actionForegroundColor,
- double? fontSize = 24,
- FontWeight? fontWeight,
- EdgeInsets padding = EdgeInsets.zero,
- bool hapticFeedback = true,
- bool enabled = true,
- Widget keyBuilder(
- BuildContext context,
- String value
Implementation
const UNumericKeyboard({
required this.onKeyTap,
required this.onBackspace,
required this.onBackspaceLongPress,
super.key,
this.actions = const <UNumericKeyboardAction>[],
this.actionsPosition = UNumericKeyboardActionsPosition.right,
this.spacing = 8,
this.runSpacing = 8,
this.keyAspectRatio = 1.6,
this.borderRadius = 12,
this.elevation = 0,
this.backgroundColor,
this.foregroundColor,
this.actionBackgroundColor,
this.actionForegroundColor,
this.fontSize = 24,
this.fontWeight,
this.padding = EdgeInsets.zero,
this.hapticFeedback = true,
this.enabled = true,
this.keyBuilder,
});