iampawan / Flutter-Music-Player

Flutter Music Player - First Open Source Flutter based material design music player with audio plugin to play local music files.
Apache License 2.0
1.72k stars 549 forks source link

SongData #33

Open FadiChaalab opened 4 years ago

FadiChaalab commented 4 years ago

The getter 'songData' was called on null. Receiver: null Tried calling: songData

maks commented 4 years ago

I suspect that the Flute plugin is not able to find any music files, which causes songData to be null and thus this error. You unfortunately did not include the actual stack trace for the error so its hard to be certain but I suspect this is where the null check needs to be: https://github.com/iampawan/Flutter-Music-Player/blob/master/lib/widgets/mp_lisview.dart#L15-L17