我使用了这个库: path_provider 1.5.1
一切正常 但pdf文件无法全屏打开
答案 0 :(得分:1)
您尝试过flutter_full_pdf_viewer库吗?
import 'package:flutter/material.dart';
import 'package:flutter_full_pdf_viewer/flutter_full_pdf_viewer.dart';
class ShowPdfPage extends StatelessWidget {
String pdfPath;
@override
Widget build(BuildContext context) {
pdfPath = //your awesome path retrieved with path_provider;
return PDFViewerScaffold(path: pdfPath);
}
}