show static method

Future<void> show({
  1. String? base64Pdf,
  2. Uint8List? bytes,
  3. String? url,
  4. String? filePath,
  5. String? asset,
  6. String password = "",
  7. int initialPage = 0,
  8. String? title,
})

Opens a full-screen PDF viewer from url/bytes/file/asset/base64. UPdf.show(url: "https://x.com/a.pdf")

Implementation

static Future<void> show({String? base64Pdf, Uint8List? bytes, String? url, String? filePath, String? asset, String password = "", int initialPage = 0, String? title}) =>
    UNavigator.bottomSheet<void>(
      UScaffold(
        body: SizedBox(
          width: MediaQuery.sizeOf(navigatorKey.currentContext!).width,
          height: MediaQuery.sizeOf(navigatorKey.currentContext!).height * 0.92,
          child: UPdfViewer(base64Pdf: base64Pdf, bytes: bytes, url: url, filePath: filePath, asset: asset, password: password, initialPage: initialPage, title: title),
        ),
      ),
    );