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
David PHAM-VAN
2020-05-03 15:26:04 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
93cf24c3fa4330aa004d2160ab6e311fbe177275
93cf24c3
1 parent
46907d52
Improve PdfPreview errors
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
printing/lib/src/pdf_preview.dart
printing/lib/src/pdf_preview.dart
View file @
93cf24c
...
...
@@ -65,7 +65,7 @@ class _PdfPreviewState extends State<PdfPreview> {
double
dpi
=
10
;
dynamic
error
;
Object
error
;
static
const
Map
<
String
,
PdfPageFormat
>
defaultPageFormats
=
<
String
,
PdfPageFormat
>{
...
...
@@ -179,9 +179,8 @@ class _PdfPreviewState extends State<PdfPreview> {
if
(
error
!=
null
)
{
Widget
content
=
_showError
();
assert
(()
{
content
=
ErrorWidget
.
withDetails
(
message:
error
.
toString
(),
);
print
(
error
);
content
=
ErrorWidget
(
error
);
return
true
;
}());
return
content
;
...
...
Please
register
or
login
to post a comment