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();
|
||||
} else {
|
||||
// Mobile implementation (just_audio)
|
||||
await _audioPlayer.setAudioSource(
|
||||
AudioSource.uri(Uri.parse(widget.fileUrl)),
|
||||
await _audioPlayer.setAudioSource( // ignore: undefined_method
|
||||
AudioSource.uri(Uri.parse(widget.fileUrl)), // ignore: undefined_getter
|
||||
);
|
||||
_audioPlayer.durationStream.firstWhere((d) => d != null).then((
|
||||
d,
|
||||
|
||||
Reference in New Issue
Block a user