Skip to main content

flutter_pdfview_platform_interface 1.1.0 copy "flutter_pdfview_platform_interface: ^1.1.0" to clipboard
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, the TextSelectionChangedCallback / SearchResultChangedCallback signatures, the enableTextSelection / enableCopy settings, and the search and selection methods on PdfViewPlatformController
  • Add PdfViewPlatformController.isTextLayerSupported, and kPdfTextLayerUnsupportedCode — the PlatformException.code an implementation must use when it has no text layer. MethodChannelPdfViewController turns it into an UnsupportedError, 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 as assetPath: a Flutter asset key the implementation resolves in the app bundle itself, so asset bytes never pass through Dart. filePath is now documented as a path or URI (file: everywhere, content: on Android)
  • Non-breaking for existing implementations that extend FlutterPdfViewPlatform

1.0.1 #

  • PdfViewPlatformController.setPage accepts optional withAnimation (default false; Android only — iOS ignores it)
  • PdfViewSettings.spacing — optional inter-page gap (creation-time; not in updatesMap)

1.0.0 #

  • Initial release, extracted from flutter_pdfview 1.5.0.
  • Adds FlutterPdfViewPlatform, PdfViewPlatformController, PdfViewCreationParams, PdfViewSettings and PdfViewCallbacks.
  • Ships MethodChannelFlutterPdfView, the default implementation backed by the plugins.endigo.io/pdfview platform view and the per-view plugins.endigo.io/pdfview_<id> method channels. The wire format is unchanged from flutter_pdfview 1.5.0, so existing native implementations keep working.
  • Moves the shared value types (FitPolicy, PageAlignment, PdfColorMode, PDFPasswordFailure, and the callback signatures) here; flutter_pdfview re-exports them, so app code needs no changes.
0
likes
150
points
274
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A common platform interface for the flutter_pdfview plugin.

Repository (GitHub)
View/report issues

Topics

#pdf #viewer #native

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_pdfview_platform_interface