showExpandedVideoAsset method

Future<void> showExpandedVideoAsset({
  1. required String videoAsset,
  2. required String userName,
  3. required String companyTitle,
  4. required Function onVideoEndAction,
  5. required Function close,
  6. required bool animateOnVideoEnd,
  7. Function? onSkip,
  8. String? avatarUrl,
  9. Widget? child,
})

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,
      ),
    ),
  );
}