Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to null safety & handle adding to controller in a stable way #2

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

hassaanalansary
Copy link

Migrate to null safety
using just controller.text=text make the selection in the controller in the wrong place and only append to the end of the controller without any regard to the place of the cursor

this PR solves this by respecting the place of the cursor and only append or delete from there which is a lot cleaner and expected from the end-user.

please let me know if you have any questions

@hassaanalansary hassaanalansary marked this pull request as draft May 29, 2021 20:01
@hassaanalansary hassaanalansary marked this pull request as ready for review May 29, 2021 20:02
@L3odr0id
Copy link

Works great. Thanks a lot! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants