openPdf static method
Future<void>
openPdf({
- required BuildContext context,
- String? filePath,
- String? url,
- String? assetPath,
- PDFViewSource source = PDFViewSource.file,
- String? title,
- bool enableTextSelection = true,
- IconData? fabIcon,
- VoidCallback? onFabPressed,
Implementation
static Future<void> openPdf({
required BuildContext context,
String? filePath,
String? url,
String? assetPath,
PDFViewSource source = PDFViewSource.file,
String? title,
bool enableNavigation = true,
bool enableTextSelection = true,
IconData? fabIcon,
VoidCallback? onFabPressed,
}) async {
await Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => BoltPDFViewer(
filePath: filePath,
url: url,
assetPath: assetPath,
source: source,
title: title,
enableNavigation: enableNavigation,
enableTextSelection: enableTextSelection,
fabIcon: fabIcon,
onFabPressed: onFabPressed,
),
),
);
}