showWebPlayer method

dynamic showWebPlayer(
  1. BuildContext context,
  2. String playerUrl,
  3. Datum content,
  4. String defaultPosterUrl,
)

Implementation

showWebPlayer(BuildContext context, String playerUrl, Datum content,
    String defaultPosterUrl) {
  showModalBottomSheet(
      backgroundColor: Colors.white.withOpacity(0.9),
      isScrollControlled: true,
      isDismissible: false,
      enableDrag: false,
      context: context,
      builder: (ctx) {
        return WebPlayer(
          content: content,
          defaultPosterUrl: defaultPosterUrl,
          onClose: () {
            Navigator.pop(ctx);
          },
          playerUrl: playerUrl,
        );
      });
}