show static method
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),
),
),
);