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

OnTap tooltip for circularStepIndicator and individual steps #18

Open
RickVM opened this issue Jan 6, 2021 · 3 comments
Open

OnTap tooltip for circularStepIndicator and individual steps #18

RickVM opened this issue Jan 6, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@RickVM
Copy link

RickVM commented Jan 6, 2021

Hi again,

Being able to handle ontap events, and possibly even show a tooltip can be a great way to give context and meaning to progress.
In my case, I want the user to move for a set time each hour (eg walk 10 mins each hour between 9-17)
Lets say a user doesnt finish his step from 11:00-12:00 and wants context, it would be great if I could display he walked for only 5 minutes during this step when he taps the step.

Any ideas on how this can be achieved?
I've looked a little bit at your code, and gesturedetector. I think this might get quite complex, but perhaps there's some tricks I dont know of yet.

Other enhancement could be adding a ontap for a circle, whilst also allowing ontaps for nested circles.
Although less detailed than a step, this could be a nice and simpler start.

@SandroMaglione
Copy link
Owner

Hi @RickVM

The main problem with the onTap gesture on the CircularProgressIndicator when I introduced it was that I use a CustomPainter to draw the circular indicator, so it was more difficult to correctly detect the tap in the steps.

Lately, I found this package touchable. It allows adding custom behaviors on tap on a CustomPainter. I may consider adding it. Basically, I would add an onTap attribute also to CircularProgressIndicator exactly like a normal StepProgressIndicator.

Would this solve your usecase?

@RickVM
Copy link
Author

RickVM commented Jan 14, 2021

Partially, it would certainly be a good start!

The second part of my usecase would be a onTap for every step.
E.g. step 1/10, 2/10, 3/10, etc..

@SandroMaglione
Copy link
Owner

I will look into it and see what is possible 🤔

@SandroMaglione SandroMaglione added the enhancement New feature or request label Jan 15, 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
Projects
None yet
Development

No branches or pull requests

2 participants