show static method
Plays a video in a bottom sheet; give one of url/bytes/base64/filePath/assetPath. UVideoSheet.show(url: url)
Implementation
static Future<void> show({
String? url,
String? base64,
Uint8List? bytes,
String? filePath,
String? assetPath,
String? title,
bool autoPlay = true,
}) => UNavigator.bottomSheet(
UScaffold(
appBar: AppBar(
backgroundColor: const Color(0xFF000000),
iconTheme: const IconThemeData(color: Color(0xFFFFFFFF)),
),
color: const Color(0xFF000000),
body: Center(
child: UVideoPlayer(
url: url,
base64: base64,
bytes: bytes,
filePath: filePath,
assetPath: assetPath,
title: title,
autoPlay: autoPlay,
borderRadius: 0,
),
),
),
);