Avoltech's Website
Avoltech's Website

Avoltech's Website

Minimalist Music Player App using Flutter




image

This is simple music player app built using flutter. The application can be divided into 2 major parts.

Part A: Finding all the music files present on the device.

Part B: Playing the music file.

The packages used for this application are as follows:

    on_audio_query: ^1.2.0
    just_audio: ^0.9.5


on_audio_query allows us to grab the music files location and its metadata (details like artists, album, albumArtwork, etc) just_audio allows is the package that will allow us to play the music files

The application has two screens.
Screen A: Home screen, where you would get all the list of the songs on the device. On this screen you can also search for a particular search you want. The search can be based upon the song title aswell as the artist name.

Screen B: Music player screen, this is where the music choosen would be played. Here you can have control over the music being played by being able to update the trackbar position, change the song, shuffle the song, loop the song, play/pause the song.


Note: The method of getting artwork for Android API level >= 29 is different than the previous version. The methods useds in this project are applicable for >=29 level, hence appropriate changes have to be made to make the method work for lower API levels.



The code for the above project can be found on the GitHub link below. Music_player_minimalist