Skip to content
pubscout

pdf_viewer_plugin

2.0.1, released 5 years ago by britto.dev

A Flutter plugin for iOS and Android providing a simple way to display local file PDFs.

WASM-ready
$ flutter pub add pdf_viewer_plugin
Source repository

What it does

It displays local PDF files on iOS and Android platforms inside a standard Flutter widget. The plugin uses platform views to render the PDF content natively.

AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display local PDF files on iOS and Android.
  • You want a simple widget-based approach to show PDFs.

Skip it when

  • You need advanced PDF manipulation, annotation, or search features.
  • You need to view PDFs on web or desktop platforms.

Strengths

  • Simple widget API for displaying local PDFs
  • Null safety support
  • Supports both iOS and Android

Weaknesses

  • Limited to local files only
  • Only supports iOS and Android platforms
  • Requires platform view configuration on iOS

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

For iOS, add the io.flutter.embedded_views_preview key set to true to ios/Runner/info.plist.

class PdfApp extends StatelessWidget {
  const PdfApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return PdfView(path: 'pdf_file_path');
  }
}

Alternatives

Packages that do the same job and could replace pdf_viewer_plugin.