show static method

Future<void> show({
  1. String? url,
  2. String? base64,
  3. Uint8List? bytes,
  4. String? filePath,
  5. String? assetPath,
  6. String? title,
  7. bool autoPlay = true,
})

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