![]() Run ‘ flutter packages get’ in terminal to install the packages if your IDE is not doing it automatically. Add Dependenciesĭo to the dependencies section and add the below dependencies http: ^0.12.1 audio_service: ^0.11.0 just_audio: ^0.2.1 If yes, then go ahead and open the ‘ pubspec.yaml’ file. I am assuming you have a simple Flutter project ready. In Flutter, we have some handy library to achieve this functionality. So what do we do to keep it running all the time until the application is killed. I should be able to control the music from lock screen or with my headsets.Ī normal audio player will stop if the application is not in foreground, correct?.Should play audio continuously even if the application is not running. ![]() So in this article we will see how we can easily create such a music player.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |