Showing
1 changed file
with
3 additions
and
4 deletions
@@ -65,7 +65,7 @@ class _PdfPreviewState extends State<PdfPreview> { | @@ -65,7 +65,7 @@ class _PdfPreviewState extends State<PdfPreview> { | ||
65 | 65 | ||
66 | double dpi = 10; | 66 | double dpi = 10; |
67 | 67 | ||
68 | - dynamic error; | 68 | + Object error; |
69 | 69 | ||
70 | static const Map<String, PdfPageFormat> defaultPageFormats = | 70 | static const Map<String, PdfPageFormat> defaultPageFormats = |
71 | <String, PdfPageFormat>{ | 71 | <String, PdfPageFormat>{ |
@@ -179,9 +179,8 @@ class _PdfPreviewState extends State<PdfPreview> { | @@ -179,9 +179,8 @@ class _PdfPreviewState extends State<PdfPreview> { | ||
179 | if (error != null) { | 179 | if (error != null) { |
180 | Widget content = _showError(); | 180 | Widget content = _showError(); |
181 | assert(() { | 181 | assert(() { |
182 | - content = ErrorWidget.withDetails( | ||
183 | - message: error.toString(), | ||
184 | - ); | 182 | + print(error); |
183 | + content = ErrorWidget(error); | ||
185 | return true; | 184 | return true; |
186 | }()); | 185 | }()); |
187 | return content; | 186 | return content; |
-
Please register or login to post a comment