FLUTTER ECOSYSTEM

lubritto/pdf_viewer_plugin

適用於 iOS 和 Android 的 Flutter 外掛程式,提供一種簡單的方式來顯示 PDF。

pdf_viewer_plugin 專案封面
Stars
58
Forks
73
最近推送(UTC)
2023年6月29日
專案狀態
未封存
Lucas Britto GitHub avatar
GITHUB User

Lucas Britto ↗

Software Engineer at Talabat

TalabatDubai, UAE
語言DartJavaObjective-CRuby

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項
  • flutter{"sdk":"flutter"}
  • pedantic^1.11.1
  • flutter_test開發依賴{"sdk":"flutter"}

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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!