show static method
Opens the player full-width inside a bottom sheet. Accepts the same sources as UVideoPlayer.
Implementation
static Future<void> show({
String? url,
String? base64,
Uint8List? bytes,
String? filePath,
String? assetPath,
bool autoPlay = true,
}) => UNavigator.bottomSheet(
UScaffold(
appBar: AppBar(
backgroundColor: Colors.black,
iconTheme: const IconThemeData(color: Colors.white),
),
color: Colors.black,
body: Center(
child: UVideoPlayer(
url: url,
base64: base64,
bytes: bytes,
filePath: filePath,
assetPath: assetPath,
autoPlay: autoPlay,
borderRadius: 0,
),
),
),
);