feat: Enhance subtitle handling with dynamic menu height adjustment

This commit is contained in:
Kirill Boychenko 2025-07-28 02:13:00 +02:00
parent d60522b021
commit 1fdab92f1f
6 changed files with 47 additions and 20 deletions

View file

@ -39,7 +39,8 @@ class MediaControlsWrapper extends BaseAudioHandler {
Stream<PlayerState>? get stateStream => _player?.stateStream;
PlayerState? get lastState => _player?.lastState;
Widget? subtitleWidget(bool showOverlay) => _player?.subtitles(showOverlay);
Widget? subtitleWidget(bool showOverlay, {double? menuHeight}) =>
_player?.subtitles(showOverlay, menuHeight: menuHeight);
Widget? videoWidget(Key key, BoxFit fit) => _player?.videoWidget(key, fit);
final Ref ref;