You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code stream: audioPlayer.sequenceStateStream, in PlayerButtons doesn't work.
I am getting this error: The argument type 'Stream<SequenceState?>' can't be assigned to the parameter type 'Stream<SequenceState>?'
The code is a year old, the package has had some changes.
To get it working you could fix the packages' versions, but I would not recommend that.
You can fix the code by changing the type of the stream builder to StreamBuilder<SequenceState?>, handling the null case in the bodies of the builder functions.
The following code
stream: audioPlayer.sequenceStateStream,
in PlayerButtons doesn't work.I am getting this error:
The argument type 'Stream<SequenceState?>' can't be assigned to the parameter type 'Stream<SequenceState>?'
StreamBuilder<SequenceState>( stream: audioPlayer.sequenceStateStream, builder: (_, __) { return _previousButton(); }, ),
StreamBuilder<SequenceState>( stream: audioPlayer.sequenceStateStream, builder: (_, __) { return _nextButton(); }, ),
The text was updated successfully, but these errors were encountered: