Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Nicolas Lopez
2020-08-10 14:55:06 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
David PHAM-VAN
2020-08-11 17:56:19 -0400
Commit
8265e21a95eaefd1c392334a273e3292a5cb821b
8265e21a
1 parent
dd0a59c8
Allow disable actions PdfPreview
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
16 deletions
printing/CHANGELOG.md
printing/lib/src/pdf_preview.dart
printing/macos/Flutter/ephemeral/Flutter-Generated.xcconfig
printing/macos/Flutter/ephemeral/flutter_export_environment.sh
printing/CHANGELOG.md
View file @
8265e21
...
...
@@ -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
...
...
printing/lib/src/pdf_preview.dart
View file @
8265e21
...
...
@@ -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
,
...
...
printing/macos/Flutter/ephemeral/Flutter-Generated.xcconfig
deleted
100644 → 0
View file @
dd0a59c
// 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
printing/macos/Flutter/ephemeral/flutter_export_environment.sh
deleted
100755 → 0
View file @
dd0a59c
#!/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"
Please
register
or
login
to post a comment