-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add Support for onTapDown #533
Comments
If we have a StyledMaterial,then we have ripple effect StyledMaterial(
child: InkWell(
onTap() {
},
),
);
|
@lvsecoto, We will create a specific issue to track the solution for |
An alternative is to create a utility for $on.tap((e) {
switch (e) {
case OnTapEvent.onTapDown:
return Style(
$box.color.red(),
);
case OnTapEvent.onTapUp:
return Style();
}
});
|
The |
Description:
Mix supports $on.press for styling Widgets, but the style is applied only after the press action is completed (
onTapUp
). Developers have expressed the need for styling during the onTapDown event.User Stories:
I want to style widgets specifically during the onTapDown event,
so that I can provide immediate visual feedback, such as color changes or scaling, when a button is pressed.
Acceptance Criteria:
Resources:
Example of API
The text was updated successfully, but these errors were encountered: