{"id":32295088,"url":"https://github.com/mohak1283/customswitch","last_synced_at":"2026-02-20T22:01:31.658Z","repository":{"id":43677233,"uuid":"194645639","full_name":"mohak1283/CustomSwitch","owner":"mohak1283","description":"Custom Switch package created in Flutter","archived":false,"fork":false,"pushed_at":"2023-03-29T17:44:07.000Z","size":63,"stargazers_count":55,"open_issues_count":19,"forks_count":42,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-23T03:52:19.262Z","etag":null,"topics":["animations","custom-switch","flutter","flutter-examples","flutter-package","flutter-widget","switch"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mohak1283.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":"2019-07-01T09:48:22.000Z","updated_at":"2024-11-04T06:15:40.000Z","dependencies_parsed_at":"2024-06-21T13:13:10.333Z","dependency_job_id":"e3c3bf2d-a961-43cb-92fe-90b7e65d947c","html_url":"https://github.com/mohak1283/CustomSwitch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mohak1283/CustomSwitch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohak1283%2FCustomSwitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohak1283%2FCustomSwitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohak1283%2FCustomSwitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohak1283%2FCustomSwitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohak1283","download_url":"https://codeload.github.com/mohak1283/CustomSwitch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohak1283%2FCustomSwitch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29666421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T19:49:36.704Z","status":"ssl_error","status_checked_at":"2026-02-20T19:44:05.372Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["animations","custom-switch","flutter","flutter-examples","flutter-package","flutter-widget","switch"],"created_at":"2025-10-23T03:51:28.423Z","updated_at":"2026-02-20T22:01:31.653Z","avatar_url":"https://github.com/mohak1283.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# custom_switch\n\nBeautiful Custom Switch package created with Flutter.\n\n[![Say Thanks!](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/mohak1283)  \n\n\nThe source code is **100% Dart**, and everything resides in the [/lib](https://github.com/mohak1283/CustomSwitch/tree/master/lib) folder.\n\n## Show some :heart: and star the repo to support the project\n\n [![GitHub followers](https://img.shields.io/github/followers/mohak1283.svg?style=social\u0026label=Follow)](https://github.com/mohak1283)  [![Twitter Follow](https://img.shields.io/twitter/follow/mohak_gupta20.svg?style=social)](https://twitter.com/mohak_gupta20)\n\n[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://opensource.org/licenses/Apache-2.0)\n\n\n\n## 💻 Installation\n\nIn the `dependencies:` section of your `pubspec.yaml`, add the following line:\n\n```yaml\ncustom_switch: \u003clatest_version\u003e\n```\n\nImport in your project:\n```dart\nimport 'package:custom_switch/custom_switch.dart';\n```\n\n## ❔Basic Usage\n```dart\nclass HomeScreen extends StatefulWidget {\n  @override\n  _HomeScreenState createState() =\u003e _HomeScreenState();\n}\n\nclass _HomeScreenState extends State\u003cHomeScreen\u003e {\n\n  bool status = false;\n\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      appBar: AppBar(\n        title: Text('Custom Switch Example'),\n      ),\n      body: Center(\n        child: Column(\n          mainAxisAlignment: MainAxisAlignment.center,\n          children: \u003cWidget\u003e[\n            CustomSwitch(\n              activeColor: Colors.pinkAccent,\n              value: status,\n              onChanged: (value) {\n                print(\"VALUE : $value\");\n                setState(() {\n                  status = value;\n                });\n              },\n            ),\n            SizedBox(height: 12.0,),\n            Text('Value : $status', style: TextStyle(\n              color: Colors.black,\n              fontSize: 20.0\n            ),)\n          ],\n        ),\n      ),\n    );\n  }\n}\n```\n## Screenshots\n\n ![custom_switch](https://user-images.githubusercontent.com/35039342/60429173-1cedb780-9c18-11e9-8fcf-c0c7a52b0e2d.gif) \n\n\n## 👨 Developed By\n\n```\nMohak Gupta\n```\n\n\n\u003ca href=\"https://twitter.com/mohak_gupta20\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/35039342/55471524-8e24cb00-5627-11e9-9389-58f3d4419153.png\" width=\"60\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.linkedin.com/in/mohak-gupta-885669131/\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/35039342/55471530-94b34280-5627-11e9-8c0e-6fe86a8406d6.png\" width=\"60\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.facebook.com/mohak.gupta.9083\"\u003e\u003cimg src=\"https://github.com/aritraroy/social-icons/blob/master/facebook-icon.png?raw=true\" width=\"60\"\u003e\u003c/a\u003e\n\u003ca href=\"https://medium.com/@mohak1936\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/35039342/60429733-5a9f1000-9c19-11e9-9243-54052a4e4f05.png\" width=\"60\"\u003e\u003c/a\u003e\n\n\n# 👍 How to Contribute\n\n1. Fork it\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create new Pull Request\n\n# 📃 License\n\n    Copyright (c) 2019 Mohak Gupta\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n## Getting Started\n\nFor help getting started with Flutter, view our online [documentation](https://flutter.dev/).\n\nFor help on editing package code, view the [documentation](https://flutter.dev/developing-packages/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohak1283%2Fcustomswitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohak1283%2Fcustomswitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohak1283%2Fcustomswitch/lists"}