flutter_pdfview_platform_interface 1.1.0
flutter_pdfview_platform_interface: ^1.1.0 copied to clipboard
A common platform interface for the flutter_pdfview plugin.
1.1.0 #
- Add the text layer to the interface:
PdfTextMatch, theTextSelectionChangedCallback/SearchResultChangedCallbacksignatures, theenableTextSelection/enableCopysettings, and the search and selection methods onPdfViewPlatformController - Add
PdfViewPlatformController.isTextLayerSupported, andkPdfTextLayerUnsupportedCode— thePlatformException.codean implementation must use when it has no text layer.MethodChannelPdfViewControllerturns it into anUnsupportedError, so an empty search result always means "searched, found nothing" and never "not supported here" - Document the text-layer contract in the package README (unsupported must throw, not return empty)
- Add
PdfViewCreationParams.assetPath, sent asassetPath: a Flutter asset key the implementation resolves in the app bundle itself, so asset bytes never pass through Dart.filePathis now documented as a path or URI (file:everywhere,content:on Android) - Non-breaking for existing implementations that extend
FlutterPdfViewPlatform
1.0.1 #
PdfViewPlatformController.setPageaccepts optionalwithAnimation(defaultfalse; Android only — iOS ignores it)PdfViewSettings.spacing— optional inter-page gap (creation-time; not inupdatesMap)
1.0.0 #
- Initial release, extracted from
flutter_pdfview1.5.0. - Adds
FlutterPdfViewPlatform,PdfViewPlatformController,PdfViewCreationParams,PdfViewSettingsandPdfViewCallbacks. - Ships
MethodChannelFlutterPdfView, the default implementation backed by theplugins.endigo.io/pdfviewplatform view and the per-viewplugins.endigo.io/pdfview_<id>method channels. The wire format is unchanged fromflutter_pdfview1.5.0, so existing native implementations keep working. - Moves the shared value types (
FitPolicy,PageAlignment,PdfColorMode,PDFPasswordFailure, and the callback signatures) here;flutter_pdfviewre-exports them, so app code needs no changes.