Showing
4 changed files
with
9 additions
and
5 deletions
| 1 | # Changelog | 1 | # Changelog |
| 2 | 2 | ||
| 3 | +## 5.10.2 | ||
| 4 | + | ||
| 5 | +- Fix Flutter 3.9 deprecations | ||
| 6 | + | ||
| 3 | ## 5.10.1 | 7 | ## 5.10.1 |
| 4 | 8 | ||
| 5 | - Fix loading pdfjs in debug mode | 9 | - Fix loading pdfjs in debug mode |
| @@ -173,7 +177,7 @@ | @@ -173,7 +177,7 @@ | ||
| 173 | ## 5.1.0 | 177 | ## 5.1.0 |
| 174 | 178 | ||
| 175 | - Fix PdfPreview timer dispose [wwl901215] | 179 | - Fix PdfPreview timer dispose [wwl901215] |
| 176 | -- Remove unnecessary _raster call in PdfPreview [yaymalaga] | 180 | +- Remove unnecessary \_raster call in PdfPreview [yaymalaga] |
| 177 | - Added subject, body and email parameters in sharePdf [Deepak] | 181 | - Added subject, body and email parameters in sharePdf [Deepak] |
| 178 | - Subject, body and emails parameter to pdf preview [Deepak] | 182 | - Subject, body and emails parameter to pdf preview [Deepak] |
| 179 | 183 |
| @@ -18,7 +18,7 @@ import 'package:flutter/services.dart'; | @@ -18,7 +18,7 @@ import 'package:flutter/services.dart'; | ||
| 18 | import 'package:pdf/widgets.dart'; | 18 | import 'package:pdf/widgets.dart'; |
| 19 | 19 | ||
| 20 | import '../cache.dart'; | 20 | import '../cache.dart'; |
| 21 | -import 'manifest.dart'; | 21 | +import 'manifest.dart' as manifest; |
| 22 | 22 | ||
| 23 | /// Downloadable font object | 23 | /// Downloadable font object |
| 24 | class DownloadableFont { | 24 | class DownloadableFont { |
| @@ -44,7 +44,7 @@ class DownloadableFont { | @@ -44,7 +44,7 @@ class DownloadableFont { | ||
| 44 | bool cache = true, | 44 | bool cache = true, |
| 45 | }) async { | 45 | }) async { |
| 46 | final asset = '$assetPrefix$name.ttf'; | 46 | final asset = '$assetPrefix$name.ttf'; |
| 47 | - if (await AssetManifest.contains(asset)) { | 47 | + if (await manifest.AssetManifest.contains(asset)) { |
| 48 | bundle ??= rootBundle; | 48 | bundle ??= rootBundle; |
| 49 | final data = await bundle.load(asset); | 49 | final data = await bundle.load(asset); |
| 50 | return TtfFont( | 50 | return TtfFont( |
| @@ -66,7 +66,7 @@ class PdfRasterImage extends ImageProvider<PdfRaster> { | @@ -66,7 +66,7 @@ class PdfRasterImage extends ImageProvider<PdfRaster> { | ||
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | @override | 68 | @override |
| 69 | - ImageStreamCompleter loadBuffer(PdfRaster key, DecoderBufferCallback decode) { | 69 | + ImageStreamCompleter loadImage(PdfRaster key, ImageDecoderCallback decode) { |
| 70 | return OneFrameImageStreamCompleter(_loadAsync()); | 70 | return OneFrameImageStreamCompleter(_loadAsync()); |
| 71 | } | 71 | } |
| 72 | 72 |
| @@ -9,7 +9,7 @@ issue_tracker: https://github.com/DavBfr/dart_pdf/issues | @@ -9,7 +9,7 @@ issue_tracker: https://github.com/DavBfr/dart_pdf/issues | ||
| 9 | screenshots: | 9 | screenshots: |
| 10 | - description: 'Printing a document on iOS' | 10 | - description: 'Printing a document on iOS' |
| 11 | path: example.png | 11 | path: example.png |
| 12 | -version: 5.10.1 | 12 | +version: 5.10.2 |
| 13 | 13 | ||
| 14 | environment: | 14 | environment: |
| 15 | sdk: ">=2.18.0 <3.0.0" | 15 | sdk: ">=2.18.0 <3.0.0" |
-
Please register or login to post a comment