A simple multi-platform music player scaffold inspired by NetEase Cloud Music.
Quick start
cd player_flutter
flutter pub get
flutter runWhat I implemented
- Basic app scaffold with
Home,Player, andPlaylistpages AudioHandlerServiceusingjust_audiofor playback- Skeleton for background audio handler (audio_service)
Next steps
- Implement background audio notifications and media controls
- Add persistent library and real network-backed music data
- Improve UI to match NetEase Cloud Music
Background playback testing
- Ensure an Android device or emulator is available.
- Run the app:
cd player_flutter
flutter run- From Home page select a sample track to start playback. Verify the Player screen shows progress and play/pause works.
- Lock the device or switch apps to verify playback continues. For Android, check the notification area for a media notification (uses app launcher icon by default).
Notes
- If you want a custom notification icon, add drawable/mipmap resources under
android/app/src/main/resand setandroidNotificationIconinaudio_background.dart.