mix icon indicating copy to clipboard operation
mix copied to clipboard

Keyboard key press Dynamic Variant

Open bdlukaa opened this issue 2 years ago • 1 comments

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 avatar May 06 '22 18:05 bdlukaa

@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

leoafarias avatar Oct 07 '22 17:10 leoafarias