{"id":13760599,"url":"https://github.com/thosakwe/flutter_music_player","last_synced_at":"2025-08-20T04:32:36.634Z","repository":{"id":97961506,"uuid":"125653143","full_name":"thosakwe/flutter_music_player","owner":"thosakwe","description":"A music player component for Flutter (i.e. Spotify, Apple Music, etc.) [AGPL/example/no longer maintaining]","archived":false,"fork":false,"pushed_at":"2019-12-05T13:52:12.000Z","size":80705,"stargazers_count":226,"open_issues_count":0,"forks_count":47,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-12-09T21:36:42.008Z","etag":null,"topics":["dart","flutter"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thosakwe.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":"2018-03-17T17:27:33.000Z","updated_at":"2024-09-18T07:57:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"eabb82a2-9f4c-42ff-b203-d04c321f27b0","html_url":"https://github.com/thosakwe/flutter_music_player","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thosakwe%2Fflutter_music_player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thosakwe%2Fflutter_music_player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thosakwe%2Fflutter_music_player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thosakwe%2Fflutter_music_player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thosakwe","download_url":"https://codeload.github.com/thosakwe/flutter_music_player/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230394228,"owners_count":18218707,"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"],"created_at":"2024-08-03T13:01:13.784Z","updated_at":"2024-12-19T07:06:43.603Z","avatar_url":"https://github.com/thosakwe.png","language":"Dart","funding_links":[],"categories":["模板","Dart","Templates [🔝](#readme)","Templates"],"sub_categories":["赚钱","推广和盈利","Monetization"],"readme":"# This is an example\nI currently have no plans of putting this on Pub. Originally, I did, but I lost interest. However, I think this is a good example, so I'm keeping it up.\n\n**That being said, the license is AGPL. Please know what that means, and don't be a pirate. I will find you.**\n\n# music_player\n![Fullscreen screenshot](screenshots/fullscreen.png)\n\nA music player component for Flutter (i.e. Spotify, Apple Music, etc.).\n\nThis is ready-to-go for embedding in a music-playing application.\nIt supports seeking, as well as having callbacks for\nskipping, shuffling, and looping.\n\n## Installation\nThis package is not yet on Pub (I haven't figured out how to test it),\nso in the meantime:\n\n```yaml\ndependencies:\n  flutter: sdk\n  music_player:\n    git: https://github.com/thosakwe/flutter_music_player.git\n```\n\n## Usage\n```dart\nclass MyWidget extends StatelessWidget {\n    @override\n    build(BuildContext context) {\n        return new MusicPlayer(\n            onError: (e) {\n                Scaffold.of(context).showSnackBar(\n                    new SnackBar(\n                        content: new Text(e),\n                    ),\n                );\n            },\n            onSkipPrevious: () {},\n            onSkipNext: () {},\n            onCompleted: () {},\n            onLoopChanged: (loop) {\n                setState(() =\u003e this.loopKind = loop);\n            },\n            onShuffleChanged: (loop) {\n                setState(() =\u003e this.shuffle = loop);\n            },\n            key: musicPlayerKey,\n            textColor: Colors.white,\n            loop: loopKind,\n            shuffle: shuffle,\n            url: mp3Url,\n            title: const Text(\n                'BBC',\n                textAlign: TextAlign.center,\n                textScaleFactor: 1.5,\n                style: const TextStyle(\n                    fontWeight: FontWeight.bold,\n                    color: Colors.white,\n                ),\n            ),\n            subtitle: const Text(\n                'JAY Z - Holy Grail',\n                textAlign: TextAlign.center,\n                style: const TextStyle(\n                    color: Colors.white,\n                ),\n            ),\n        );\n    }\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthosakwe%2Fflutter_music_player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthosakwe%2Fflutter_music_player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthosakwe%2Fflutter_music_player/lists"}