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
class _VdoPlaybackViewState extends State {
VdoPlayerController? _controller;
final double aspectRatio = 16 / 9;
ValueNotifier _isFullScreen = ValueNotifier(true); // Set to true initially
class _VdoPlaybackViewState extends State {
VdoPlayerController? _controller;
final double aspectRatio = 16 / 9;
ValueNotifier _isFullScreen = ValueNotifier(true); // Set to true initially
@OverRide
void initState() {
super.initState();
_isFullScreen.value = true;
}
// ... rest of your code ...
@OverRide
Widget build(BuildContext context) {
return Scaffold(
body: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Flexible(
child: Container(
child: VdoPlayer(
embedInfo: SAMPLE_1,
onPlayerCreated: (controller) => _onPlayerCreated(controller),
onFullscreenChange: _onFullscreenChange,
onError: _onVdoError,
controls: true, // optional, set false to disable player controls
),
width: MediaQuery.of(context).size.width,
height: _isFullScreen.value
? MediaQuery.of(context).size.height
: _getHeightForWidth(MediaQuery.of(context).size.width),
),
),
ValueListenableBuilder(
valueListenable: _isFullScreen,
builder: (context, dynamic value, child) {
return value ? SizedBox.shrink() : _nonFullScreenContent();
},
),
],
),
);
}
// ... rest of your code ...
}
The text was updated successfully, but these errors were encountered: