showWebPlayer method
dynamic
showWebPlayer(
- BuildContext context,
- String playerUrl,
- Datum content,
- 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,
);
});
}