Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard key press Dynamic Variant #80

Open
bdlukaa opened this issue May 6, 2022 · 1 comment
Open

Keyboard key press Dynamic Variant #80

bdlukaa opened this issue May 6, 2022 · 1 comment
Assignees
Labels

Comments

@bdlukaa
Copy link
Contributor

bdlukaa commented May 6, 2022

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:

@leoafarias
Copy link
Member

@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 leoafarias changed the title Variants: key Keyboard key press Dynamic Variant Oct 7, 2022
@tilucasoli tilucasoli self-assigned this Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants