|
@@ -161,6 +161,7 @@ class ChewieController extends ChangeNotifier {
|
|
|
this.customControls,
|
|
this.customControls,
|
|
|
this.allowedScreenSleep = true,
|
|
this.allowedScreenSleep = true,
|
|
|
this.isLive = false,
|
|
this.isLive = false,
|
|
|
|
|
+ this.allowFullScreen = true,
|
|
|
}) : assert(videoPlayerController != null,
|
|
}) : assert(videoPlayerController != null,
|
|
|
'You must provide a controller to play a video') {
|
|
'You must provide a controller to play a video') {
|
|
|
_initialize();
|
|
_initialize();
|
|
@@ -215,6 +216,9 @@ class ChewieController extends ChangeNotifier {
|
|
|
/// Defines if the controls should be for live stream video
|
|
/// Defines if the controls should be for live stream video
|
|
|
final bool isLive;
|
|
final bool isLive;
|
|
|
|
|
|
|
|
|
|
+ /// Defines if the fullscreen control should be shown
|
|
|
|
|
+ final bool allowFullScreen;
|
|
|
|
|
+
|
|
|
static ChewieController of(BuildContext context) {
|
|
static ChewieController of(BuildContext context) {
|
|
|
final _ChewieControllerProvider chewieControllerProvider =
|
|
final _ChewieControllerProvider chewieControllerProvider =
|
|
|
context.inheritFromWidgetOfExactType(_ChewieControllerProvider);
|
|
context.inheritFromWidgetOfExactType(_ChewieControllerProvider);
|