v2.0.1pdf_viewer_plugin
一個適用於 iOS 和 Android 的 Flutter 外掛程式,提供一種簡單的方式來顯示本機檔案 PDF(輸入以查看一些 GIF 動畫)。
70喜歡 311近 30 天下載130Pub 分數
AndroidiOS
適用於 iOS 和 Android 的 Flutter 外掛程式,提供一種簡單的方式來顯示 PDF。
{"sdk":"flutter"}^1.11.1{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
A Flutter plugin for IOS and Android providing a simple way to display PDFs.
android ios
First, add pdf_viewer_plugin as a dependency in your pubspec.yaml file.
Add this lines to the ios/Runner/info.plist:
...
<key>io.flutter.embedded_views_preview</key>
<true/>
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!