mix icon indicating copy to clipboard operation
mix copied to clipboard

InteractiveBox > PressableBox

Open jonathanfristedt opened this issue 2 years ago • 2 comments

Use case

A more intuitive name describing the expected capacities of the widget (on hover, pressed, long press etc) while also giving room for further development of the widget

Proposal

Suggestion to rename PressableBox to InteractiveBox

jonathanfristedt avatar May 19 '24 03:05 jonathanfristedt

Thank you for your contribution!

We were discussing it because it was mentioned on another Issue that requested adding one more callback on PressableBox, the onHover. I agree that to continue with the name PressableBox is a bit weird.

@leoafarias what's your opinion?

tilucasoli avatar May 20 '24 13:05 tilucasoli

Yes, this aligns well with our internal discussions, @jonathanfristedt. We might also create a different name for the Pressable, which is just a provider of the states and does not have the Box styling.

leoafarias avatar May 20 '24 18:05 leoafarias

We now support the WidgetStateController and Interactable which handles these cases described https://www.fluttermix.com/docs/tutorials/controlling-widget-state

leoafarias avatar Aug 02 '24 17:08 leoafarias