mirror of
https://github.com/nini22P/iris.git
synced 2026-09-03 06:24:07 +08:00
fix: wrap SubtitleAndAudioTrack in MediaPlayer provider for context access
This commit is contained in:
@@ -181,7 +181,10 @@ KeyboardEvent useKeyboard({
|
||||
showControlForHover(
|
||||
showPopup(
|
||||
context: context,
|
||||
child: SubtitleAndAudioTrack(),
|
||||
child: Provider<MediaPlayer>.value(
|
||||
value: context.read<MediaPlayer>(),
|
||||
child: const SubtitleAndAudioTrack(),
|
||||
),
|
||||
direction: PopupDirection.right,
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user