OmriLevy888 / song-tinder

Heard of tinder? Heard of music? They had a match!
6 stars 0 forks source link

SongProvider as a singleton #32

Closed OmriLevy888 closed 2 years ago

OmriLevy888 commented 2 years ago

After doing #24, it's getting really cumbersome to pass objects that implement the logic though many layers of widgets. It might be wise to change SongProvider to be a singleton where its state is modified over the lifetime of the app. This would simplify many widget constructors and make them const again!