ListView.Builder play/Pause buttom flutter

后端 未结 3 1236
醉酒成梦
醉酒成梦 2020-12-21 18:50

I am using a ListView.builder to create an audio list, I need to change the play button pause individually to an item when I select it, I have tried a bool but giving play o

3条回答
  •  一生所求
    2020-12-21 19:42

    Don't use one bool for all of your audio, you can use collections to define a bool for everything in your audioList, and when you click, change the bool for the audio.

提交回复
热议问题