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.
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.
- syncfusion_flutter_pdfviewer
Flutter PDF Viewer library to display PDF documents seamlessly and efficiently.
86Compare - native_pdf_view
Flutter plugin to render and display PDF files across Web, macOS, Windows, Android, and iOS.
50Compare - file_selector_macos
macOS implementation of the file_selector plugin
82Compare - syncfusion_flutter_pdf
Native Dart library for creating, reading, editing, and securing PDF files.
89Compare