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

Trackball inside the slider was added #2

Merged
merged 1 commit into from Mar 22, 2020

Conversation

diegoveloper
Copy link
Contributor

@diegoveloper diegoveloper commented Mar 16, 2020

Based on this issue #1 it's interesting to have a visual indicator apart from the curve of the line to have more feedback about the current position.

I created a new property for WaveSlider , it's a bool value displayTrackball (false by default).

Also I created a sample project inside the current project (just as all packages have)

This is a demo
slider_trackball

Usage

  WaveSlider(
            displayTrackball: true,
            onChanged: (double dragUpdate) {
              setState(() {
                _dragPercentage = dragUpdate *
                    100; // dragUpdate is a fractional value between 0 and 1
              });
            },
          ),

- example project was created
Copy link
Owner

@funwithflutter funwithflutter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job. Like the changes!

@funwithflutter funwithflutter merged commit abb0e4f into funwithflutter:master Mar 22, 2020
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