{"id":21261520,"url":"https://github.com/chenasraf/wheel_spinner","last_synced_at":"2025-07-11T03:32:28.580Z","repository":{"id":54599142,"uuid":"174852702","full_name":"chenasraf/wheel_spinner","owner":"chenasraf","description":"A simple Flutter widget for updating a number using a pitch bender-like spinner","archived":false,"fork":false,"pushed_at":"2024-01-23T10:45:07.000Z","size":49,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T20:11:15.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/wheel_spinner","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chenasraf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-03-10T16:52:30.000Z","updated_at":"2024-10-29T17:33:22.000Z","dependencies_parsed_at":"2022-08-13T20:50:53.834Z","dependency_job_id":"4d2f07ef-cab3-4d92-b8c7-3115ccb7e447","html_url":"https://github.com/chenasraf/wheel_spinner","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":"0.19999999999999996","last_synced_commit":"70f4c4d770b2845205b564d75dc95bf90056e8ea"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/chenasraf/wheel_spinner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenasraf%2Fwheel_spinner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenasraf%2Fwheel_spinner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenasraf%2Fwheel_spinner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenasraf%2Fwheel_spinner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenasraf","download_url":"https://codeload.github.com/chenasraf/wheel_spinner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenasraf%2Fwheel_spinner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264721387,"owners_count":23653928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T04:43:39.063Z","updated_at":"2025-07-11T03:32:26.678Z","avatar_url":"https://github.com/chenasraf.png","language":"Dart","funding_links":["https://ko-fi.com/casraf'"],"categories":[],"sub_categories":[],"readme":"# wheel_spinner\n\nWheelSpinner provides you with a simple number spinner that resembles a wheel, knob, or more\nspecifically pitch bender knobs. It allows you to update a single `double` value with a finger fling\nor drag as in the example below.\n\n\u003cimg src=\"https://casraf.dev/images/wheel-spinner-tutorial/scr04.gif\" width=\"300px\" /\u003e\n\u003cimg src=\"https://casraf.dev/images/wheel-spinner-tutorial/scr05.gif\" width=\"300px\" /\u003e\n\n## How to use\n\nSimply import the package, and use the exposed `WheelSpinner` widget.\n\nSee all the individual parameters for more details on theme and display customization, as well as\nevent handlers. Here is a a full usage example:\n\n```dart\nWidget build(BuildContext context) {\n  return WheelSpinner(\n    // required\n    value: value,\n    min: 0.0,\n    max: 100.0,\n\n    // optional\n    onSlideStart: (val) =\u003e debugPrint(value),\n    onSlideUpdate: (val) =\u003e onChange(value),\n    onSlideDone: (val) =\u003e debugPrint(value),\n    childBuilder: (val) =\u003e Text(val.toString()),\n    theme: WheelSpinnerTheme.light(),\n  );\n}\n```\n\n## Customizing the theme\n\nYou can use the `theme` property to override a theme once, or wrap many sliders in the same\n`WheelSpinnerTheme` widget, which references a theme in its' `data` property.\n\n**Direct override example:**\n\n```dart\nWheelSpinner(\n  value: value,\n  min: 0.0,\n  max: 100.0,\n  onSlideUpdate: (val) =\u003e onChange(value),\n  theme: WheelSpinnerTheme.light().copyWith(\n    borderRadius: BorderRadius.circular(10),\n  ),\n)\n```\n\n**Inherited widget override example:**\n\n```dart\nWheelSpinnerTheme(\n  data: WheelSpinnerTheme.light().copyWith(\n    borderRadius: BorderRadius.circular(10),\n  ),\n  child: WheelSpinner(\n    value: value,\n    min: 0.0,\n    max: 100.0,\n    onSlideUpdate: (val) =\u003e onChange(value),\n  ),\n)\n```\n\n## Contributing\n\nI am developing this package on my free time, so any support, whether code, issues, or just stars is\nvery helpful to sustaining its life. If you are feeling incredibly generous and would like to donate\njust a small amount to help sustain this project, I would be very very thankful!\n\n\u003ca href='https://ko-fi.com/casraf' target='_blank'\u003e\n  \u003cimg height='36' style='border:0px;height:36px;'\n    src='https://cdn.ko-fi.com/cdn/kofi1.png?v=3'\n    alt='Buy Me a Coffee at ko-fi.com' /\u003e\n\u003c/a\u003e\n\nI welcome any issues or pull requests on GitHub. If you find a bug, or would like a new feature,\ndon't hesitate to open an appropriate issue and I will do my best to reply promptly.\n\nIf you are a developer and want to contribute code, here are some starting tips:\n\n1. Fork this repository\n2. Run `dart pub get`\n3. Make any changes you would like\n4. Update the relevant documentation (readme, code comments)\n5. Create a PR on upstream\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenasraf%2Fwheel_spinner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenasraf%2Fwheel_spinner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenasraf%2Fwheel_spinner/lists"}