feat: Replace flutter_pdfview with pdfx

This commit is contained in:
Anton Stubenbord
2023-10-29 14:21:45 +01:00
parent 7e2108a87e
commit 9b4b2cebd5
6 changed files with 124 additions and 72 deletions

View File

@@ -36,7 +36,10 @@ class DocumentPreview extends StatelessWidget {
child: GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: isClickable
? () => DocumentPreviewRoute(id: documentId).push(context)
? () => DocumentPreviewRoute(
id: documentId,
title: title,
).push(context)
: null,
child: Builder(builder: (context) {
if (enableHero) {