Music-Player created using flutter and kotlin and Foreground Services, it uses MethodChannel and EventChannel to connect dart code and kotlin code. And it includes sensors like if the user shake his phone the player will pause the music or resume playing using Accelerometer sensor.
- Read local mp3 files of your phone.
- Play music using Foreground services (Native code) without dependencies.
- Control player with notification buttons.
- Listen to Accelerometer sensor if user shake his phone.
- Send Action from Dart code to Kotlin using MethodChannel.
- Send Data from Kotlin to Dart using EventChannel.