Nicolas Lopez
Committed by David PHAM-VAN

Allow disable actions PdfPreview

... ... @@ -4,6 +4,7 @@
- Added pdfFileName prop to PdfPreview Widget [Marcos Rodriguez]
- Fix PdfPreview unhandled exception when popped [computib]
- Allow to disable actions in PdfPreview [Nicolas Lopez]
## 3.5.0
... ...
... ... @@ -29,6 +29,7 @@ class PdfPreview extends StatefulWidget {
this.scrollViewDecoration,
this.pdfPreviewPageDecoration,
this.pdfFileName,
this.useActions = true,
}) : super(key: key);
/// Called when a pdf document is needed
... ... @@ -43,6 +44,9 @@ class PdfPreview extends StatefulWidget {
/// Add a button to share the pdf document
final bool allowSharing;
/// Allow disable actions
final bool useActions;
/// Maximum width of the pdf document on screen
final double maxPageWidth;
... ... @@ -356,7 +360,7 @@ class _PdfPreviewState extends State<PdfPreview> {
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Expanded(child: scrollView),
if (actions.isNotEmpty)
if (actions.isNotEmpty && widget.useActions)
Material(
elevation: 4,
color: theme.primaryColor,
... ...
// This is a generated file; do not edit or check into version control.
FLUTTER_ROOT=/Users/dad/Documents/Perso/flutter
FLUTTER_APPLICATION_PATH=/Users/dad/Documents/Perso/dart_pdf/printing
FLUTTER_BUILD_DIR=build
FLUTTER_FRAMEWORK_DIR=/Users/dad/Documents/Perso/flutter/bin/cache/artifacts/engine/darwin-x64
FLUTTER_BUILD_NAME=3.4.0
FLUTTER_BUILD_NUMBER=3.4.0
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=/Users/dad/Documents/Perso/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/dad/Documents/Perso/dart_pdf/printing"
export "FLUTTER_BUILD_DIR=build"
export "FLUTTER_FRAMEWORK_DIR=/Users/dad/Documents/Perso/flutter/bin/cache/artifacts/engine/darwin-x64"
export "FLUTTER_BUILD_NAME=3.4.0"
export "FLUTTER_BUILD_NUMBER=3.4.0"