Skip to main content

codifyiq_pdf_viewer 2.0.0 copy "codifyiq_pdf_viewer: ^2.0.0" to clipboard
codifyiq_pdf_viewer: ^2.0.0 copied to clipboard

A PDF viewer with zoom controls, a page indicator, and optional text search, inline or as a full-screen route, powered by pdfrx.

2.0.0 #

  • Breaking: now built on material_ui, Flutter's standalone Material library, instead of the copy bundled in the Flutter SDK. Your app must use material_ui too, otherwise the widgets won't pick up your theme. To migrate your app, run dart fix --apply --code=migrate_design_widgets.
  • Breaking: requires Flutter 3.44 / Dart 3.12 or later.
  • Breaking: requires pdfrx 2.5.0 or later, the first release built on material_ui, so the viewer's built-in controls follow your app's theme.
  • PdfViewerScreen — a full-screen PDF viewer to push as its own route, for example from a tapped chat attachment. It has a close button, an optional title (such as the file name), and a search button that shows the search bar ready to type in. The system back gesture closes the search bar before the screen. The close button is hidden when there is nowhere to go back to; pass onClose when the screen isn't a pushed route, such as a deep-linked page.
  • Supply onShare and onDownload to enable Share and Download, and add your own overflow menu entries with PdfViewerAction. Share is an app bar button on mobile and desktop and Download on web, with the other in the overflow menu, matching codifyiq_image_viewer. Share hands back the button's position for the iPad share sheet.
  • PdfViewerWidget gains autofocusSearch (default false) to focus the search field as soon as the search bar appears, or as soon as the document is ready if the bar appears while it is still loading.

1.1.0 #

  • PdfSource.uri gains a preferRangeAccess flag (default false). When enabled, the viewer streams a network PDF via HTTP range requests instead of downloading it in full first, so the first page of a large document renders after a single small request. Servers that don't support range requests fall back to a full download automatically. No effect on web.
  • PdfViewerWidget now shows a linear download progress bar across the top of the viewer while a network PDF loads — determinate when the server reports a content length, indeterminate otherwise. Disable it with showDownloadProgress: false, and/or pass onDownloadProgress: (received, total) { ... } to drive your own progress UI.
  • PdfSource.uri gains a useProgressiveLoading flag (default true) that hands back pages as the document parses instead of only after the whole file is available. Combined with preferRangeAccess: true and a linearized ("Fast Web View") PDF, later pages of a large remote document can render before the download finishes; non-linearized PDFs still need a near-complete download first.
  • PdfViewerWidget gains an initialPageNumber (default 1) to open a document to a specific page — handy for deep links or resuming where the reader left off. Applies to all source types.
  • PdfViewerWidget gains a networkTimeout (default 30 seconds) for PdfSource.uri: if a network request fails to start responding within the window it surfaces the error UI instead of waiting forever. It bounds the response start (connect + headers) per request, not the total download time.

1.0.0 #

  • Initial release as a standalone package, extracted from codifyiq_core_components.
  • PdfViewerWidget and PdfSource — a PDF viewer with a built-in search UI, consistent zoom bounds, web zoom buttons, a page indicator, and a unified network/file/bytes source.
0
likes
160
points
98
downloads

Documentation

API reference

Publisher

verified publishercodifyiq.com

Weekly Downloads

A PDF viewer with zoom controls, a page indicator, and optional text search, inline or as a full-screen route, powered by pdfrx.

Repository (GitHub)
View/report issues

Topics

#codifyiq #ui #widget #pdf

License

MIT (license)

Dependencies

flutter, material_ui, pdfrx

More

Packages that depend on codifyiq_pdf_viewer