KeyboardKeyDisplay constructor

const KeyboardKeyDisplay({
  1. Key? key,
  2. required LogicalKeyboardKey keyboardKey,
  3. EdgeInsetsGeometry? padding,
  4. List<BoxShadow>? boxShadow,
})

Creates a KeyboardKeyDisplay for the specified keyboard key.

The keyboardKey parameter is required and determines which key is displayed. Visual appearance can be customized through the optional padding and shadow parameters.

Parameters:

  • keyboardKey (LogicalKeyboardKey, required): Key to display
  • padding (EdgeInsetsGeometry?, optional): Internal padding
  • boxShadow (List

Example:

KeyboardKeyDisplay(
  keyboardKey: LogicalKeyboardKey.escape,
  padding: EdgeInsets.all(6),
)

Implementation

const KeyboardKeyDisplay({
  super.key,
  required this.keyboardKey,
  this.padding,
  this.boxShadow,
});