show static method

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

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