macos_ui icon indicating copy to clipboard operation
macos_ui copied to clipboard

Allow the graphical `MacosTimePicker` to be updated by dragging the clock hands to a different position

Open GroovinChip opened this issue 3 years ago • 6 comments

The native graphical time picker has this functionality, so it should be implemented here.

GroovinChip avatar May 03 '22 16:05 GroovinChip

Been thinking about how to do this and I am totally stumped :|

GroovinChip avatar May 05 '22 14:05 GroovinChip

Can be probably done with the touchable package. I have used it on another project to all kinds of gesture detection to CustomPaint shapes.

whiplashoo avatar May 08 '22 19:05 whiplashoo

Fascinating!! I will take a close look at this either this evening or tomorrow. Thank you!

GroovinChip avatar May 08 '22 19:05 GroovinChip

@whiplashoo I've just experimented with the touchable and I was unable to achieve any results :/

GroovinChip avatar Jul 28 '22 16:07 GroovinChip

Yes, I also had a go and found it will need a lot of work to get right. I managed to add gesture detectors (onPanUpdate) to the clock hands. But then, I got stuck on calculating the gesture delta and properly updating the hand's position.

whiplashoo avatar Jul 31 '22 15:07 whiplashoo

Yeah it's quite a challenge. I'm really not sure what to do :/

On a more concerning note, I found several bugs with the actual time. I'll log those when I get a chance.

GroovinChip avatar Jul 31 '22 16:07 GroovinChip