Search packages, repositories and app categories

GitHub repositorylubritto/pdf_viewer_plugin

pdf_viewer_plugin

A Flutter plugin for IOS and Android providing a simple way to display PDFs.

pdf_viewer_plugin project cover
Stars
58
Forks
73
Last push (UTC)
Jun 29, 2023
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

Pdf Viewer Plugin

pub package

A Flutter plugin for IOS and Android providing a simple way to display PDFs.

Features:

  • Display PDF.

android           ios

Installation

First, add pdf_viewer_plugin as a dependency in your pubspec.yaml file.

iOS

Add this lines to the ios/Runner/info.plist:

...

<key>io.flutter.embedded_views_preview</key>
<true/>
Example

The plugin works like a normal widget

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

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

Feedback welcome and Pull Requests are most welcome!

Lucas Britto GitHub avatar
GitHub author

Lucas Britto ↗

Software Engineer at Talabat

TalabatDubai, UAE
LanguagesDartJavaObjective-CRuby

Packages published by this repository

Dependencies used

Dependency list 3 items

  • flutter{"sdk":"flutter"}
  • pedantic^1.11.1
  • flutter_testDevelopment{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗