KeyboardKeyDisplay constructor
const
KeyboardKeyDisplay({
- Key? key,
- required LogicalKeyboardKey keyboardKey,
- EdgeInsetsGeometry? padding,
- 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 displaypadding
(EdgeInsetsGeometry?, optional): Internal paddingboxShadow
(List
Example:
KeyboardKeyDisplay(
keyboardKey: LogicalKeyboardKey.escape,
padding: EdgeInsets.all(6),
)
Implementation
const KeyboardKeyDisplay({
super.key,
required this.keyboardKey,
this.padding,
this.boxShadow,
});