{"id":18918397,"url":"https://github.com/hacker1649/battery-percentage-app","last_synced_at":"2026-03-12T06:30:15.414Z","repository":{"id":240275680,"uuid":"802179579","full_name":"hacker1649/battery-percentage-app","owner":"hacker1649","description":"Classwork #9 - Platform Channels","archived":false,"fork":false,"pushed_at":"2024-05-17T17:28:25.000Z","size":270,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T15:50:01.594Z","etag":null,"topics":["dart","flutter","method-channel","platform-channels","platform-integration","platform-specific-code"],"latest_commit_sha":null,"homepage":"https://docs.flutter.dev/platform-integration/platform-channels?tab=ios-channel-objective-c","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hacker1649.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-05-17T17:13:34.000Z","updated_at":"2024-05-17T17:28:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"80b1e681-68e6-4d81-b8b6-8c6a65b941fe","html_url":"https://github.com/hacker1649/battery-percentage-app","commit_stats":null,"previous_names":["hacker1649/battery-percentage-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacker1649%2Fbattery-percentage-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacker1649%2Fbattery-percentage-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacker1649%2Fbattery-percentage-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacker1649%2Fbattery-percentage-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hacker1649","download_url":"https://codeload.github.com/hacker1649/battery-percentage-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239914929,"owners_count":19717760,"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","flutter","method-channel","platform-channels","platform-integration","platform-specific-code"],"created_at":"2024-11-08T10:31:40.664Z","updated_at":"2026-03-12T06:30:15.368Z","avatar_url":"https://github.com/hacker1649.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# battery_level\n\nA new Flutter project.\n\n## Calling platform-specific code using platform channels\n\nThe following code demonstrates how to call a platform-specific API to retrieve and display the current battery level. It uses the Android BatteryManager API, the iOS device.batteryLevel API, the Windows GetSystemPowerStatus API, and the Linux UPower API with a single platform message, getBatteryLevel().\n\nThe example adds the platform-specific code inside the main app itself. If you want to reuse the platform-specific code for multiple apps, the project creation step is slightly different (see [developing packages](https://docs.flutter.dev/packages-and-plugins/developing-packages#plugin)), but the platform channel code is still written in the same way.\n\n### Getting Started\n\nThis project is a starting point for a Flutter application.\n\nA few resources to get you started if this is your first Flutter project:\n\n- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)\n- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)\n\nFor help getting started with Flutter development, view the\n[online documentation](https://docs.flutter.dev/), which offers tutorials,\nsamples, guidance on mobile development, and a full API reference.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacker1649%2Fbattery-percentage-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhacker1649%2Fbattery-percentage-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacker1649%2Fbattery-percentage-app/lists"}