conceptadev / mix

A styling system for Flutter
https://fluttermix.com
BSD 3-Clause "New" or "Revised" License
601 stars 37 forks source link

Support for onDoubleTap and other properties on Pressable #452

Open leoafarias opened 2 months ago

leoafarias commented 2 months ago

Discussed in https://github.com/conceptadev/mix/discussions/447

Originally posted by **Solido** August 15, 2024 I need support for double click :) right now onPress only is supported if I understand well? Thanks!
leoafarias commented 2 months ago

Should also include styling variants.

quangson91 commented 2 weeks ago

@leoafarias Thank you for create a great lib. There is also a disscusion on create onTapDown; https://discord.com/channels/1250793431819751524/1250797904340193280/1261089142759231741

I think it would be great if we can style when user pressing the pressable box.

Thanks!

hmirza1 commented 2 weeks ago

I’d like to add my support for this feature request. I really need the ability to style a button specifically at the onTapDown event.

On the web we have hover styling, but on mobile, there’s no equivalent for a when a button is pressed (but not released) state. It would be helpful to apply styling in that moment, similar to how hover works on the web.

I see that #453 extends gesture detection, but it doesn’t seem to expose onTapDown yet.

Thanks for all the work you guys have done!