{"id":20609501,"url":"https://github.com/fluttercommunity/wakelock_plus","last_synced_at":"2025-05-16T19:04:08.464Z","repository":{"id":177146076,"uuid":"655993144","full_name":"fluttercommunity/wakelock_plus","owner":"fluttercommunity","description":"Flutter plugin that allows you to keep the device screen awake on Android, iOS, macOS, Windows, Linux, and web.","archived":false,"fork":false,"pushed_at":"2025-04-24T17:38:49.000Z","size":467,"stargazers_count":79,"open_issues_count":30,"forks_count":63,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-24T18:38:45.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluttercommunity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","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":"2023-06-20T03:47:12.000Z","updated_at":"2025-04-24T17:38:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"a9a7dc00-43a8-426d-8f4c-7b7d03429218","html_url":"https://github.com/fluttercommunity/wakelock_plus","commit_stats":null,"previous_names":["diegotori/wakelock_plus","fluttercommunity/wakelock_plus"],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercommunity%2Fwakelock_plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercommunity%2Fwakelock_plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercommunity%2Fwakelock_plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercommunity%2Fwakelock_plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluttercommunity","download_url":"https://codeload.github.com/fluttercommunity/wakelock_plus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254592368,"owners_count":22097011,"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":[],"created_at":"2024-11-16T10:13:44.332Z","updated_at":"2025-05-16T19:04:08.240Z","avatar_url":"https://github.com/fluttercommunity.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wakelock Plus \n[![GitHub stars](https://img.shields.io/github/stars/fluttercommunity/wakelock_plus.svg)](https://github.com/fluttercommunity/wakelock_plus) [![Pub version](https://img.shields.io/pub/v/wakelock_plus.svg)](https://pub.dev/packages/wakelock_plus)\n\nA continuation of the original Flutter [plugin](https://github.com/creativecreatorormaybenot/wakelock) \nthat allows you to keep the device screen awake, i.e. prevent the screen\nfrom sleeping.\n\n## Supported platforms\n\n| Platform | `wakelock_plus` support |\n|:---------|:------------------:|\n| Android  |         ✅          |\n| iOS      |         ✅          |\n| Web      |         ✅          |\n| macOS    |         ✅          |\n| Windows  |         ✅          |\n| Linux    |         ✅          |\n\n## Getting started\n\nTo learn more about the plugin and getting started, you can view the main package's \n[README](https://github.com/fluttercommunity/wakelock_plus/blob/main/wakelock/README.md).\n\n### Plugin structure\n\nThis plugin plugin uses the [federated plugins approach](https://flutter.dev/docs/development/packages-and-plugins/developing-packages#federated-plugins).  \n\nAndroid, iOS, macOS (via Hybrid Implementation), and Web use Platform Channels in their implementations. \nWindows and Linux are handled through [Dart-only platform implementations](https://docs.flutter.dev/packages-and-plugins/developing-packages#dart-only-platform-implementations).  \n\nThe basic API is defined using [`pigeon`](https://pub.dev/packages/pigeon). The pigeon files can be found in the [`pigeons` directory](https://github.com/fluttercommunity/wakelock_plus/tree/main/wakelock/pigeons)\nin the main package. The API is defined in Dart in the [`wakelock_plus_platform_interface` package](https://github.com/fluttercommunity/wakelock_plus/tree/main/wakelock_plus_platform_interface).\n\nThe packages in this repo are the following:\n\n| Package                                                                                                                       | Implementations                                                                    |\n|-------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|\n| [`wakelock_plus`](https://github.com/fluttercommunity/wakelock_plus/tree/main/wakelock)                                       | Main plugin package + Android, iOS, macOS, Windows, Linux, and Web implementations |\n| [`wakelock_plus_platform_interface`](https://github.com/fluttercommunity/wakelock_plus/tree/main/wakelock_platform_interface) | Basic API definition \u0026 message handling                                            |\n\n## Contributing\n\nIf you want to contribute to this plugin, follow the [contributing guide](https://github.com/fluttercommunity/wakelock_plus/blob/main/.github/CONTRIBUTING.md).\n\n## Origin\n\nAs stated before, this plugin is a continuation of the original [wakelock](https://pub.dev/packages/wakelock) plugin. \nThat plugin was originally based on [`screen`](https://pub.dev/packages/screen).  \n\nSpecifically, the wakelock functionality was extracted into the `wakelock` plugin due to lack of \nmaintenance by the author of the `screen` plugin.  \n\nFor this library, the functionality remains the \nsame as the original plugin, but has been completely refreshed (using latest Flutter standards and\nplatform integration) with support for all six platforms currently supported by Flutter \n(Android, iOS, macOS, Windows, Linux, and Web).\n\n## Migrating from the `wakelock` Plugin\n\nSimply replace the import statement with the one below:\n\n```dart\nimport 'package:wakelock_plus/wakelock_plus.dart';\n```\n\nAs well as replacing all the calls to `Wakelock` with `WakelockPlus`:\n\n```dart\nWakelockPlus.enable();\n//...\nWakelockPlus.disable();\n//...\nWakelockPlus.toggle(enable: true);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercommunity%2Fwakelock_plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluttercommunity%2Fwakelock_plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercommunity%2Fwakelock_plus/lists"}