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

Move cursor using pointer input #15

Open
TylerAtCodeOfLife opened this issue Mar 21, 2021 · 4 comments
Open

Move cursor using pointer input #15

TylerAtCodeOfLife opened this issue Mar 21, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@TylerAtCodeOfLife
Copy link

Feature description

Your documentation and examples have no examples where you can touch the input. How difficult would this be to implement with your underlying widgets?

@TylerAtCodeOfLife TylerAtCodeOfLife added the enhancement New feature or request label Mar 21, 2021
@github-actions
Copy link
Contributor

Hi 👋🏽 Thank you for opening your first issue with simpleclub/math_keyboard ❤

You can expect triage from us soon 🙂
In the meantime, you can try to search for similar issues in our issue database.

@creativecreatorormaybenot
Copy link
Contributor

Thanks for the question @TylerAtCodeOfLife 🙏

Could you elaborate on what exactly you are thinking about? It might also be beneficial to change the issue title to something more descriptive when doing that. I have some guesses on what you mean by "touch the input", however, I am not sure I understand you correctly.

@creativecreatorormaybenot creativecreatorormaybenot added the waiting for response Waiting for the OP to respond. label Mar 21, 2021
@TylerAtCodeOfLife TylerAtCodeOfLife changed the title touchable? Can you touch to move the cursor? Mar 22, 2021
@TylerAtCodeOfLife
Copy link
Author

Didn't realize how vague I was being.

I meant that on your examples I was able to move the cursor with arrow keys provided, but touching the input box did not move the cursor.

I'm asking because I've created interfaces like this before and while the example page shows that your keypad and input field are working the example didn't let me touch where i wanted to edit to move the cursor and it also didn't let me select part of an equation.

I wanted to ask before digging into your code because I thought you'd have to use https://api.flutter.dev/flutter/rendering/RenderEditable-class.html
but you don't mention it

@creativecreatorormaybenot
Copy link
Contributor

Thanks @TylerAtCodeOfLife - it makes sense :)

This is not yet built-in. This is something that @znjameswu put some effort into I think (as part of https://github.com/znjameswu/flutter_math). Having said that, flutter_math already has selection support, which is why I think it would not be too hard to add.

I mirrored some of the EditableText behavior, however, did not go with RenderEditable.

@creativecreatorormaybenot creativecreatorormaybenot removed the waiting for response Waiting for the OP to respond. label Mar 22, 2021
@creativecreatorormaybenot creativecreatorormaybenot changed the title Can you touch to move the cursor? Move cursor using pointer input Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants