David PHAM-VAN

Temporary fix for Dart 2.3.0 compatiblity

  1 +# 2.0.1
  2 +* Fix Replace FlutterErrorDetails to be compatible with Dart 2.3.0
  3 +
1 # 2.0.0 4 # 2.0.0
2 * Breaking change: Switch libraries to AndroidX 5 * Breaking change: Switch libraries to AndroidX
3 * Add Page information to PdfDoc object 6 * Add Page information to PdfDoc object
@@ -56,13 +56,8 @@ Future<PdfImage> pdfImageFromImageProvider( @@ -56,13 +56,8 @@ Future<PdfImage> pdfImageFromImageProvider(
56 if (onError != null) { 56 if (onError != null) {
57 onError(exception, stackTrace); 57 onError(exception, stackTrace);
58 } else { 58 } else {
59 - FlutterError.reportError(FlutterErrorDetails(  
60 - context: DiagnosticsNode.message('image failed to load'),  
61 - library: 'printing',  
62 - exception: exception,  
63 - stack: stackTrace,  
64 - silent: true,  
65 - )); 59 + // https://groups.google.com/forum/#!topic/flutter-announce/hp1RNIgej38
  60 + AssertionError('image failed to load');
66 } 61 }
67 } 62 }
68 63
@@ -4,7 +4,7 @@ description: Plugin that allows Flutter apps to generate and print documents to @@ -4,7 +4,7 @@ description: Plugin that allows Flutter apps to generate and print documents to
4 homepage: https://github.com/DavBfr/dart_pdf/tree/master/printing 4 homepage: https://github.com/DavBfr/dart_pdf/tree/master/printing
5 repository: https://github.com/DavBfr/dart_pdf 5 repository: https://github.com/DavBfr/dart_pdf
6 issue_tracker: https://github.com/DavBfr/dart_pdf/issues 6 issue_tracker: https://github.com/DavBfr/dart_pdf/issues
7 -version: 2.0.0 7 +version: 2.0.1
8 8
9 environment: 9 environment:
10 sdk: ">=2.1.0 <3.0.0" 10 sdk: ">=2.1.0 <3.0.0"