mix
mix copied to clipboard
Keyboard key press Dynamic Variant
This would be a variant that would react to a keyboard key press. It'd be something like:
final mix = Mix(
key(LogicalKeyboardKey.enter)(
bgColor(Colors.red),
),
);
The key(<LogicalKeyboardKey>)
would make the following possible:
Mix(
(hover & key(LogicalKeyboardKey.enter) & ...)(
),
);
Pressable
could be used to handle this, or maybe a new widget could also be created
See also:
- https://api.flutter.dev/flutter/services/KeyDownEvent-class.html
@bdlukaa This a great suggest, I added the label add-on, as I think we will create a repository monorepo that allows to add all these functionalities, so we can keep the core Mix experience as light as possible