widgets library
Widget-focused APIs for virtual_keypad.
Import this library when you want the scoped widget workflow: VirtualKeypadScope, VirtualKeypadTextField, VirtualKeypadController, VirtualKeypad, and VirtualKeypadFloating.
This library is useful when you want tighter focus routing, input-action callbacks, system keyboard blocking, and widget-level customization without importing every layout symbol from the main package entrypoint.
Classes
- VirtualKey
- Represents a single key on the virtual keyboard or keypad.
- VirtualKeypad
- A customizable virtual on-screen keyboard widget.
- VirtualKeypadColorEmoji
- Registers a color emoji font at runtime, so web can show color emoji without every app paying for one in its bundle.
- VirtualKeypadController
- A controller for VirtualKeypadTextField that provides text manipulation methods.
- VirtualKeypadFloating
- A floating, draggable host for VirtualKeypad.
- VirtualKeypadFloatingController
- Controls the visibility and docking of VirtualKeypadFloating.
- VirtualKeypadScope
- Manages the connection between VirtualKeypadTextField widgets and VirtualKeypad.
- VirtualKeypadScopeState
- State for VirtualKeypadScope.
- VirtualKeypadStandaloneScope
- Scopes a VirtualKeypad in standalone mode to only respond to text fields within its subtree.
- VirtualKeypadStandaloneScopeState
- State for VirtualKeypadStandaloneScope.
- VirtualKeypadTextField
- A text field that integrates with VirtualKeypad through VirtualKeypadScope.
- VirtualKeypadTheme
- Theme configuration for VirtualKeypad appearance.
- VkpColors
- Default color constants for VirtualKeypadTheme.
Enums
- KeyAction
- Actions that can be performed by special keys on the keyboard.
- KeyboardType
- Keyboard input types that determine the layout shown.
- KeyFeedback
- How a key press is confirmed to the user, beyond the visual key preview.
- KeyType
- The type of a virtual keyboard key.
- LayoutStage
- Current layout stage for keyboards with multiple pages.
- VirtualKeypadFloatingVisibilityMode
- Controls how VirtualKeypadFloating decides when the panel is visible.
Extensions
- VirtualKeypadEmojiFont on ThemeData
- Adds the bundled emoji font to a ThemeData so emoji render offline on web.
Constants
- kBundledEmojiFontFamily → const String
- Emoji font bundled with this package, subset to the codepoints the emoji picker uses.
Functions
-
bundledEmojiFallbackFamilies(
) → List< String> - Emoji font families to fall back through, best first.
-
defaultEmojiTextStyle(
) → TextStyle? - Emoji text style applied when the caller does not supply one.
-
withBundledEmojiFallback(
TextStyle? style) → TextStyle? -
Appends the emoji fallback families to
styleso emoji in that text render offline on web.
Typedefs
-
EmojiFontBytesLoader
= Future<
ByteData> Function() - Supplies the bytes of a color emoji font.
-
KeyboardLayout
= List<
KeyRow> - A complete keyboard layout consisting of multiple rows.
-
KeyRow
= List<
VirtualKey> - A row of keys in a keyboard layout.