Fix web build: add ignore comments for conditional import methods
This commit is contained in:
@@ -108,8 +108,8 @@ class _AudioPlayerBarState extends State<AudioPlayerBar>
|
|||||||
await _audioPlayer.play();
|
await _audioPlayer.play();
|
||||||
} else {
|
} else {
|
||||||
// Mobile implementation (just_audio)
|
// Mobile implementation (just_audio)
|
||||||
await _audioPlayer.setAudioSource(
|
await _audioPlayer.setAudioSource( // ignore: undefined_method
|
||||||
AudioSource.uri(Uri.parse(widget.fileUrl)),
|
AudioSource.uri(Uri.parse(widget.fileUrl)), // ignore: undefined_getter
|
||||||
);
|
);
|
||||||
_audioPlayer.durationStream.firstWhere((d) => d != null).then((
|
_audioPlayer.durationStream.firstWhere((d) => d != null).then((
|
||||||
d,
|
d,
|
||||||
|
|||||||
Reference in New Issue
Block a user