{"id":32290693,"url":"https://github.com/smartnsoft/flappy_infocenter","last_synced_at":"2026-07-13T04:33:03.988Z","repository":{"id":56828872,"uuid":"206556913","full_name":"smartnsoft/flappy_infocenter","owner":"smartnsoft","description":"A Flutter plugin to handle events of the iOS Playing Info Center","archived":false,"fork":false,"pushed_at":"2019-10-14T14:57:27.000Z","size":76,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-23T02:55:51.783Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smartnsoft.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":"2019-09-05T12:20:27.000Z","updated_at":"2019-10-19T09:34:18.000Z","dependencies_parsed_at":"2022-08-26T13:51:25.247Z","dependency_job_id":null,"html_url":"https://github.com/smartnsoft/flappy_infocenter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/smartnsoft/flappy_infocenter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartnsoft%2Fflappy_infocenter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartnsoft%2Fflappy_infocenter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartnsoft%2Fflappy_infocenter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartnsoft%2Fflappy_infocenter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smartnsoft","download_url":"https://codeload.github.com/smartnsoft/flappy_infocenter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartnsoft%2Fflappy_infocenter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35410671,"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-13T02:00:06.543Z","response_time":119,"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":[],"created_at":"2025-10-23T02:55:28.832Z","updated_at":"2026-07-13T04:33:03.983Z","avatar_url":"https://github.com/smartnsoft.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flappy InfoCenter\n\nA Flutter plugin to handle iOS Playing Info Center events such as _play_, _pause_, _title_, etc.\n\n## Installation\n\n```\nflappy_infocenter: 1.0.1\n```\n\n## Getting Started\n\nThe plugin allows to display easily the playing info center on iOS. This is the built-in \nnotification used to display audio or video information in the notification center.\n\nIt will work _if and only if_ a player is currently launched. The tests have been made using the\n[`audioplayers`](https://github.com/luanpotter/audioplayers) plugin.\n\nFirst, import the package in your code \n```\nimport 'package:flappy_infocenter/flappy_infocenter.dart';\n```\n\nYou can then access the _FlappyInfoCenter singleton_ freely in your code.\n\n## API\n\nAll the methods will overwrite what is currently displayed in the info center.\n\n### Info\n\n```\nstatic setInfo(String author, String title) async\n```\n\nDisplays in the info center an author and a title for the given audio or video played.\n\n### Progress\n\n```\nstatic setProgress(int progress) async\n```\n\nDisplays in the info center the progress in seconds for the given audio or video played. Will work\nif and only if a total duration has been set.\n\n### Duration\n\n```\nstatic setDuration(int duration) async\n```\n\nDisplays in the info center the total duration in seconds of the given audio or video played.\n\n### Image\n\n```\nstatic setImage(String url) async\n```\n\nDisplays in the info center an image for the given audio or video played. The image must be a valid\nURL.\n\n### Player listener\n\n```\nstatic setPlayerListener(PlayerListener listener)\n```\n\nAllows to get info center control events. Currently, only PLAY and PAUSE works.\n\nExample :\n\n```\nFlappyInfoCenter.setPlayerListener((PlayerState state) {\n  switch (state) {\n    case PlayerState.PLAY:\n      play();\n      break;\n    case PlayerState.PAUSE:\n      pause();\n      break;\n    case PlayerState.NEXT:\n      break;\n    case PlayerState.PREVIOUS:\n      break;\n  }\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartnsoft%2Fflappy_infocenter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartnsoft%2Fflappy_infocenter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartnsoft%2Fflappy_infocenter/lists"}