PDF文件无法在全屏模式下打开

时间:2020-01-09 13:08:12

标签: pdf flutter

我使用了这个库: path_provider 1.5.1

一切正常 但pdf文件无法全屏打开

1 个答案:

答案 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);
  }
}