{"id":32270606,"url":"https://github.com/memishood/theme_button","last_synced_at":"2026-07-11T18:31:24.213Z","repository":{"id":47455823,"uuid":"516140089","full_name":"memishood/theme_button","owner":"memishood","description":"Theme button provides a toggle widget for night/light modes","archived":false,"fork":false,"pushed_at":"2022-09-12T14:18:17.000Z","size":467,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-27T02:11:52.748Z","etag":null,"topics":["dark-mode","flutter-theme","light-mode","theme-toggle","toggle","toggle-buttons","toggle-switches"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/memishood.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}},"created_at":"2022-07-20T21:31:33.000Z","updated_at":"2025-01-01T18:03:06.000Z","dependencies_parsed_at":"2022-08-03T05:15:12.192Z","dependency_job_id":null,"html_url":"https://github.com/memishood/theme_button","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/memishood/theme_button","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memishood%2Ftheme_button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memishood%2Ftheme_button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memishood%2Ftheme_button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memishood%2Ftheme_button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/memishood","download_url":"https://codeload.github.com/memishood/theme_button/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memishood%2Ftheme_button/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35372639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-11T02:00:05.354Z","response_time":104,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dark-mode","flutter-theme","light-mode","theme-toggle","toggle","toggle-buttons","toggle-switches"],"created_at":"2025-10-22T22:40:09.887Z","updated_at":"2026-07-11T18:31:24.206Z","avatar_url":"https://github.com/memishood.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ThemeButton\n\nhttps://pub.dev/packages/theme_button\n\n\u003ch3\u003eIt ensures a switch widget for Night/Light theme modes\u003c/h3\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/memishood/theme_button/main/sample.gif\" height=200\u003e\n\n## Add Dependency\n```yaml\ndependencies:\n  flutter:\n    sdk: flutter\n  # add theme_button\n  theme_button: ^{latest version}\n```\n\n## Get Started\n\n```dart\nimport 'package:theme_button/theme_button.dart';\n\nThemeButton(\n    onChanged: (bool value) {\n        // do stuff\n    },\n),\n```\n\n### Property\n\n| Property        | Type         | Default Value            | Description                                                                 |\n| --------------- | ------------ | ------------------------ | --------------------------------------------------------------------------- |\n| width           | double       | 72                       | The width of the view                                                       |\n| height          | double       | 72                       | The height of the view                                                      |\n| padding         | EdgeInsets   | EdgeInsets.zero          | Animation padding                                                           |\n| duration        | Duration     | 1 seconds                | Animation speed                                                             |\n| onChanged       | Fun(value)   | null                     | It'll be called when the switch has been changed by the user                |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemishood%2Ftheme_button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmemishood%2Ftheme_button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemishood%2Ftheme_button/lists"}