Skip to main content

keycaps 0.1.1 copy "keycaps: ^0.1.1" to clipboard
keycaps: ^0.1.1 copied to clipboard

Keycap and keyboard-shortcut widgets for Flutter. Draws ⌘⇧P or Ctrl+Shift+P from a string, a LogicalKeyboardKey or a ShortcutActivator, themed and labelled per platform.

0.1.1 #

  • Point the README screenshots at absolute raw.githubusercontent.com URLs, so they render on pub.dev regardless of repository verification.

0.1.0 #

Initial release.

  • Keycap — one key, from a literal label, a LogicalKeyboardKey, or any widget.
  • Keycaps — a chord, from a string (Cmd+Shift+P), explicit KeyTokens, or a SingleActivator / CharacterActivator.
  • KeycapSequence — chords pressed one after another (Ctrl+K then Ctrl+S).
  • Platform-aware labels: ⌘ ⌥ ⌃ ⇧ on Apple, Win/Ctrl/Alt on Windows, Super on Linux — including conventional modifier ordering.
  • KeycapTheme / KeycapThemeData / KeycapStyle, four variants (raised, flat, outlined, bare) and three size presets.
  • Phosphor icons for keys a picture says better: the OS logo on the meta key and the arrow keys by default, every modifier under KeycapIcons.always. KeycapIconFontGuard keeps the unused Phosphor weights from shipping whole.
  • Caps sink when tapped (onTap, Keycaps.onKeyTap), and light up while their key is held on the device — one shared HardwareKeyboard handler that never swallows an event.
  • Screen readers hear words (Command Shift P), not glyphs.
1
likes
160
points
127
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Keycap and keyboard-shortcut widgets for Flutter. Draws ⌘⇧P or Ctrl+Shift+P from a string, a LogicalKeyboardKey or a ShortcutActivator, themed and labelled per platform.

Repository (GitHub)
View/report issues

Topics

#keyboard #shortcuts #widget #ui

License

MIT (license)

Dependencies

flutter, phosphor_icons

More

Packages that depend on keycaps