{"id":13791804,"url":"https://github.com/divyanshub024/day_night_switch","last_synced_at":"2025-04-09T16:22:07.049Z","repository":{"id":35136142,"uuid":"211375471","full_name":"divyanshub024/day_night_switch","owner":"divyanshub024","description":"A day night switch widget for Flutter.","archived":false,"fork":false,"pushed_at":"2023-08-05T14:21:18.000Z","size":4406,"stargazers_count":106,"open_issues_count":2,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-09T16:21:39.123Z","etag":null,"topics":["dart","dartlang","day-night-switch","flutter","flutter-package","flutter-widget"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/day_night_switch/","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/divyanshub024.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-09-27T18:02:26.000Z","updated_at":"2025-03-01T21:28:11.000Z","dependencies_parsed_at":"2024-01-08T05:06:35.143Z","dependency_job_id":"5f808e09-082e-4c3a-81e3-4e2ef548678d","html_url":"https://github.com/divyanshub024/day_night_switch","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyanshub024%2Fday_night_switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyanshub024%2Fday_night_switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyanshub024%2Fday_night_switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyanshub024%2Fday_night_switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/divyanshub024","download_url":"https://codeload.github.com/divyanshub024/day_night_switch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065388,"owners_count":21041889,"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","dartlang","day-night-switch","flutter","flutter-package","flutter-widget"],"created_at":"2024-08-03T22:01:04.749Z","updated_at":"2025-04-09T16:22:07.018Z","avatar_url":"https://github.com/divyanshub024.png","language":"Dart","funding_links":[],"categories":["Table of Contents"],"sub_categories":[],"readme":"# DayNightSwitch\n\nA day night switch widget for Flutter.\n\n\u003cimg src=\"https://raw.githubusercontent.com/divyanshub024/day_night_switch/master/day_night_switch.gif\" /\u003e\n\n## Installation\n\nAdd to pubspec.yaml.\n\n```\ndependencies:\n  day_night_switch:\n```\n\n## Usage\n\nTo use plugin, just import package `import 'package:day_night_switch/day_night_switch.dart';`\n\n## Example\n```\nDayNightSwitch(\n  value: val,\n  moonImage: AssetImage('assets/moon.png'),\n  sunImage: AssetImage('assets/sun.png'),\n  sunColor: sunColor,\n  moonColor: moonColor,\n  dayColor: dayColor,\n  nightColor: nightColor,\n  onChanged: (value) {\n    setState(() {\n    val = value;\n    });\n  },\n)\n```\n\n## Connect\n- [Twitter](https://twitter.com/divyanshub024)\n- [Medium](https://medium.com/@divyanshub024)\n- [LinkedIn](https://www.linkedin.com/in/divyanshub024/)\n\n## LICENCE\n```\nCopyright 2019 Divyanshu Bhargava\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivyanshub024%2Fday_night_switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivyanshub024%2Fday_night_switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivyanshub024%2Fday_night_switch/lists"}