{"id":15066375,"url":"https://github.com/joakimunge/flutter_dial_knob","last_synced_at":"2025-04-10T13:42:52.693Z","repository":{"id":255446964,"uuid":"852630890","full_name":"joakimunge/flutter_dial_knob","owner":"joakimunge","description":"A customizable knob widget for Flutter.","archived":false,"fork":false,"pushed_at":"2024-09-05T07:19:50.000Z","size":134,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T12:21:45.717Z","etag":null,"topics":["dart","dial","flutter","knob","widget"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flutter_dial_knob","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joakimunge.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-05T06:27:41.000Z","updated_at":"2024-10-29T14:49:49.000Z","dependencies_parsed_at":"2024-09-06T11:39:04.272Z","dependency_job_id":null,"html_url":"https://github.com/joakimunge/flutter_dial_knob","commit_stats":null,"previous_names":["joakimunge/flutter_dial_knob","joakimunge/flutter_knob"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakimunge%2Fflutter_dial_knob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakimunge%2Fflutter_dial_knob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakimunge%2Fflutter_dial_knob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakimunge%2Fflutter_dial_knob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joakimunge","download_url":"https://codeload.github.com/joakimunge/flutter_dial_knob/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248226265,"owners_count":21068170,"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":["dart","dial","flutter","knob","widget"],"created_at":"2024-09-25T01:06:38.986Z","updated_at":"2025-04-10T13:42:52.665Z","avatar_url":"https://github.com/joakimunge.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Knob\n\nA customizable dial knob widget for Flutter.\n\n![screenshot](doc/demo.png)\n\n## Features\n\n- Dart 3 Compatible\n- Customizable colors for track, level, knob, and indicator\n- Gradient support for level indicator\n- Adjustable size\n\n## Installation\n\nAdd this to your `pubspec.yaml` file:\n\n```yaml\ndependencies:\n  flutter_dial_knob: ^0.0.2\n```\n\nThen run:\n\n```sh\nflutter pub get\n```\n\nor\n\n```\n$ flutter pub add flutter_dial_knob\n```\n\n## Usage\n\nImport the package in your Dart file:\n\n```dart\nimport 'package:flutter_dial_knob/flutter_dial_knob.dart';\n```\n\nUse the `DialKnob` widget in your Flutter app:\n\n```dart\nimport 'package:flutter/material.dart';\nimport 'package:flutter_dial_knob/flutter_dial_knob.dart';\n\nvoid main() {\n  runApp(MyApp());\n}\n\nclass MyApp extends StatelessWidget {\n  @override\n  Widget build(BuildContext context) {\n    return MaterialApp(\n      home: Scaffold(\n        appBar: AppBar(\n          title: Text('Dial Knob Example'),\n        ),\n        body: Center(\n          child: DialKnob(\n            value: 0.5,\n            onChanged: (newValue) {\n              print(newValue);\n            },\n            min: 0,\n            max: 1,\n            size: 100,\n            trackColor: Colors.grey,\n            levelColorStart: Colors.green,\n            levelColorEnd: Colors.red,\n            knobColor: Colors.blue,\n            indicatorColor: Colors.white,\n          ),\n        ),\n      ),\n    );\n  }\n}\n```\n\n## Customizable Properties\n\n- `value`: The current value of the knob.\n- `onChanged`: Callback when the value changes.\n- `min`: Minimum value (default is 0).\n- `max`: Maximum value (default is 1).\n- `size`: Size of the knob (default is 72).\n- `child`: Optional child widget.\n- `trackColor`: Color of the track.\n- `levelColorStart`: Start color of the level gradient.\n- `levelColorEnd`: End color of the level gradient.\n- `levelColor`: Solid color of the level.\n- `knobColor`: Color of the knob.\n- `indicatorColor`: Color of the indicator.\n\n## Example\n\n```dart\nDialKnob(\n  value: 0.5,\n  onChanged: (newValue) {\n    print(newValue);\n  },\n  min: 0,\n  max: 1,\n  size: 100,\n  trackColor: Colors.grey,\n  levelColorStart: Colors.green,\n  levelColorEnd: Colors.red,\n  knobColor: Colors.blue,\n  indicatorColor: Colors.white,\n)\n```\n\n## License\n\nMIT License. See LICENSE for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoakimunge%2Fflutter_dial_knob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoakimunge%2Fflutter_dial_knob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoakimunge%2Fflutter_dial_knob/lists"}