{"id":13551187,"url":"https://github.com/ketanchoyal/custom_radio_grouped_button","last_synced_at":"2025-04-07T13:09:26.149Z","repository":{"id":35068114,"uuid":"202912371","full_name":"ketanchoyal/custom_radio_grouped_button","owner":"ketanchoyal","description":"Custom Flutter widgets that makes Checkbox and Radio Buttons much cleaner and easier.","archived":false,"fork":false,"pushed_at":"2023-09-22T16:52:09.000Z","size":2255,"stargazers_count":149,"open_issues_count":8,"forks_count":41,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-31T12:05:19.138Z","etag":null,"topics":["android-application","dart","flutter","flutter-ui","flutter-widget","hacktoberfest","ios-app"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/custom_radio_grouped_button","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/ketanchoyal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"ketanchoyal","issuehunt":"ketanchoyal","custom":["https://www.paypal.me/ketanchoyal/"]}},"created_at":"2019-08-17T17:28:44.000Z","updated_at":"2025-03-16T23:18:03.000Z","dependencies_parsed_at":"2024-06-20T23:28:21.110Z","dependency_job_id":"7fbb9a10-2b9d-4b8e-b1ea-72e70498da82","html_url":"https://github.com/ketanchoyal/custom_radio_grouped_button","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ketanchoyal%2Fcustom_radio_grouped_button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ketanchoyal%2Fcustom_radio_grouped_button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ketanchoyal%2Fcustom_radio_grouped_button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ketanchoyal%2Fcustom_radio_grouped_button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ketanchoyal","download_url":"https://codeload.github.com/ketanchoyal/custom_radio_grouped_button/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657281,"owners_count":20974345,"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":["android-application","dart","flutter","flutter-ui","flutter-widget","hacktoberfest","ios-app"],"created_at":"2024-08-01T12:01:43.832Z","updated_at":"2025-04-07T13:09:26.123Z","avatar_url":"https://github.com/ketanchoyal.png","language":"Dart","funding_links":["https://github.com/sponsors/ketanchoyal","https://issuehunt.io/r/ketanchoyal","https://www.paypal.me/ketanchoyal/"],"categories":["Dart","Packages"],"sub_categories":[],"readme":"# custom_radio_grouped_button\n\n[![Pub](https://img.shields.io/pub/v/custom_radio_grouped_button)](https://pub.dartlang.org/packages/custom_radio_grouped_button)\n\nCustom Radio Buttons and Grouped Check Box Button\n\nCustom Flutter widgets that makes Checkbox and Radio Buttons much cleaner and easier\n\n## Installing\n\nAdd the following to your `pubspec.yaml` file:\n\n    dependencies:\n      custom_radio_grouped_button: any\n\n# Creating Radio Button\n\n    CustomRadioButton(\n      elevation: 0,\n      absoluteZeroSpacing: true,\n      unSelectedColor: Theme.of(context).canvasColor,\n      buttonLables: [\n        'Student',\n        'Parent',\n        'Teacher',\n      ],\n      buttonValues: [\n        \"STUDENT\",\n        \"PARENT\",\n        \"TEACHER\",\n      ],\n      buttonTextStyle: ButtonTextStyle(\n          selectedColor: Colors.white,\n          unSelectedColor: Colors.black,\n          textStyle: TextStyle(fontSize: 16)),\n      radioButtonValue: (value) {\n        print(value);\n      },\n      selectedColor: Theme.of(context).accentColor,\n    ),\n\n# Creating Grouped Button\n\n\n    CustomCheckBoxGroup(\n      buttonTextStyle: ButtonTextStyle(\n        selectedColor: Colors.red,\n        unSelectedColor: Colors.orange,\n        textStyle: TextStyle(\n          fontSize: 16,\n        ),\n        selectedTextStyle: TextStyle(\n          fontSize: 20,\n          fontWeight: FontWeight.w700,\n        ),\n      ),\n      unSelectedColor: Theme.of(context).canvasColor,\n      buttonLables: [\n        \"M\",\n        \"T\",\n        \"W\",\n        \"T\",\n        \"F\",\n        \"S\",\n        \"S\",\n      ],\n      buttonValuesList: [\n        \"Monday\",\n        \"Tuesday\",\n        \"Wednesday\",\n        \"Thursday\",\n        \"Friday\",\n        \"Saturday\",\n        \"Sunday\",\n      ],\n      checkBoxButtonValues: (values) {\n        print(values);\n      },\n      spacing: 0,\n      defaultSelected: \"Monday\",\n      horizontal: false,\n      enableButtonWrap: false,\n      width: 40,\n      absoluteZeroSpacing: false,\n      selectedColor: Theme.of(context).accentColor,\n      padding: 10, \n    );\n\n# Changing values Programiically\n\nYou can acces the widget's state using `Key` now\n\nExample: Create a key for the CustomRadioButton widget\n\n    final key = new GlobalKey\u003cCustomRadioButtonState\u003cT\u003e\u003e();\n\nnow to change the value of the widget pass the value to the `selectButton` method\n\n    key.currentState.selectButton(\u003cvalue\u003e);\n\nSimilarly for the CustomCheckBoxGroup widget\n\n    final key = new GlobalKey\u003cCustomCheckBoxGroupState\u003cT\u003e\u003e();\n\n    key.currentState.selectButton(\u003cvalue\u003e);\n\n## Screenshots\n\n\u003cimg src=\"https://github.com/ketanchoyal/custom_radio_grouped_button/raw/dev/ScreenShots/GroupButton.gif\" alt=\"Grouped Button\"/\u003e\n\n\u003cimg src=\"https://github.com/ketanchoyal/custom_radio_grouped_button/raw/dev/ScreenShots/RadioButton.gif\" alt=\"Grouped Button\"/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fketanchoyal%2Fcustom_radio_grouped_button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fketanchoyal%2Fcustom_radio_grouped_button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fketanchoyal%2Fcustom_radio_grouped_button/lists"}