showExpandedVideoAsset method
Implementation
Future<void> showExpandedVideoAsset({
required String videoAsset,
required String userName,
required String companyTitle,
required Function onVideoEndAction,
required Function close,
required bool animateOnVideoEnd,
Function? onSkip,
String? avatarUrl,
Widget? child,
}) async {
_overlayHelper.showHelper(
(context) => Material(
color: Colors.transparent,
type: MaterialType.transparency,
child: VideoExpanded(
videoAsset: videoAsset,
companyTitle: companyTitle,
userName: userName,
avatarUrl: avatarUrl,
onEndAction: onVideoEndAction,
animateOnVideoEnd: animateOnVideoEnd,
triggerEndRemaining: const Duration(seconds: 1),
onSkip: onSkip,
close: close,
bgColor: const Color(0xFF191E26).withOpacity(.82),
child: child,
),
),
);
}