show static method

Future<void> show({
  1. String? base64Pdf,
  2. Uint8List? bytes,
  3. String? url,
  4. String? filePath,
})

Implementation

static Future<void> show({String? base64Pdf, Uint8List? bytes, String? url, String? filePath}) => UNavigator.bottomSheet(
  UScaffold(
    appBar: AppBar(),
    body: SizedBox(
      width: MediaQuery.sizeOf(navigatorKey.currentContext!).width,
      child: UPdfViewer(base64Pdf: base64Pdf, bytes: bytes, url: url, filePath: filePath),
    ),
  ),
);