UNumericKeyboard constructor

const UNumericKeyboard({
  1. required void onKeyTap(
    1. String value
    ),
  2. required VoidCallback onBackspace,
  3. required VoidCallback onBackspaceLongPress,
  4. Key? key,
  5. List<UNumericKeyboardAction> actions = const <UNumericKeyboardAction>[],
  6. UNumericKeyboardActionsPosition actionsPosition = UNumericKeyboardActionsPosition.right,
  7. double spacing = 8,
  8. double runSpacing = 8,
  9. double keyAspectRatio = 1.6,
  10. double borderRadius = 12,
  11. double elevation = 0,
  12. Color? backgroundColor,
  13. Color? foregroundColor,
  14. Color? actionBackgroundColor,
  15. Color? actionForegroundColor,
  16. double? fontSize = 24,
  17. FontWeight? fontWeight,
  18. EdgeInsets padding = EdgeInsets.zero,
  19. bool hapticFeedback = true,
  20. bool enabled = true,
  21. Widget keyBuilder(
    1. BuildContext context,
    2. 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,
});