I want to get a true while finger in randomly sliding over the screen and enters a particular widget and false if finger gets out of that widget.
I want to get a true while finger in randomly sliding over the screen and enters a particular widget and false if finger gets out of that widget.
2
Answers
There are no mouse devices on mobile, so users don’t have the luxury of using hover effects. Using a hover effect on mobile apps causes buttons to stay stuck in the hovered state when tapped. This stickiness not only confuses users, but it frustrates them when they’re forced to double-tap buttons to initiate an action. The alternative is the Inkwell widget which will show a splash when the user will enter said widget.
Hope this helps.
This behavior can be achieved using the
Draggable
andDragTarget
widgets:refer to those topics:
Drag a UI element
Draggable Widget
DragTarget Widget