reqable / re-editor

Re-Editor is a powerful lightweight text and code editor widget.
https://pub.dev/packages/re_editor
MIT License
527 stars 51 forks source link

Implement floating cursor feature for iOS #53

Closed pawel-t-wolny closed 1 week ago

pawel-t-wolny commented 1 week ago

resolves #12

Implemented the floating cursor feature for iOS.

It works as shown in the demo video below. The color and width are currently set to match the normal cursor. However, if needed, they will be easy to expose so they can be explicitly customized.

EDIT: On second thought I also added an animation effect when the final cursor position is outside of the viewport and the floating cursor snaps to it. In my opinion, it looks better. The second clip shows the effect.

https://github.com/user-attachments/assets/7fc21bc4-ac9c-4729-b5d8-7761500ce58a

https://github.com/user-attachments/assets/390fb75e-b8ae-4c76-beea-3af2ccc1a63d

MegatronKing commented 1 week ago

👏 Nice work, thanks very much.