Try fixing permissions on android

This commit is contained in:
2023-02-23 00:50:27 +01:00
parent 93872f4a8e
commit bb6bf5cab4
6 changed files with 19 additions and 165 deletions

View File

@@ -12,12 +12,12 @@ class SheetViewerPage extends StatefulWidget {
}
class _SheetViewerPageState extends State<SheetViewerPage> {
PdfControllerPinch? controller;
PdfController? controller;
@override
void initState() {
controller =
PdfControllerPinch(document: PdfDocument.openFile(widget.sheet.path));
PdfController(document: PdfDocument.openFile(widget.sheet.path));
super.initState();
}
@@ -27,8 +27,10 @@ class _SheetViewerPageState extends State<SheetViewerPage> {
appBar: AppBar(
title: Text(widget.sheet.name),
),
body: PdfViewPinch(
body: PdfView(
controller: controller!,
pageSnapping: false,
scrollDirection: Axis.vertical,
));
}
}