showFullScreenVideoPlayer method

void showFullScreenVideoPlayer(
  1. BuildContext context
)

Implementation

void showFullScreenVideoPlayer(BuildContext context) {
  showDialog(
    context: context,
    barrierDismissible: false,
    builder: (BuildContext context2) {
      return WillPopScope(
        onWillPop: () async{
          if(isFullScreenValue.value){
            Navigator.of(context2).pop();
            isFullScreenValue.value = false;
            return false;
          }
          return false;
        },
        child: Scaffold(
          body: SizedBox(
            width: double.infinity,
            height: double.infinity,
            child: videoPlayerComponent(playerController.value, context2),

          ),
        )
      );
    },
  );
}