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
2023-03-08 18:56:38 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d210462af77952268b7e97a460acc8b8bdbfe7a9
d210462a
1 parent
4a0cc3ae
Fix Flutter 3.9 deprecations
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
printing/CHANGELOG.md
printing/lib/src/fonts/font.dart
printing/lib/src/raster.dart
printing/pubspec.yaml
printing/CHANGELOG.md
View file @
d210462
# Changelog
## 5.10.2
-
Fix Flutter 3.9 deprecations
## 5.10.1
-
Fix loading pdfjs in debug mode
...
...
@@ -173,7 +177,7 @@
## 5.1.0
-
Fix PdfPreview timer dispose
[
wwl901215
]
-
Remove unnecessary _raster call in PdfPreview
[
yaymalaga
]
-
Remove unnecessary
\
_
raster call in PdfPreview
[
yaymalaga
]
-
Added subject, body and email parameters in sharePdf
[
Deepak
]
-
Subject, body and emails parameter to pdf preview
[
Deepak
]
...
...
printing/lib/src/fonts/font.dart
View file @
d210462
...
...
@@ -18,7 +18,7 @@ import 'package:flutter/services.dart';
import
'package:pdf/widgets.dart'
;
import
'../cache.dart'
;
import
'manifest.dart'
;
import
'manifest.dart'
as
manifest
;
/// Downloadable font object
class
DownloadableFont
{
...
...
@@ -44,7 +44,7 @@ class DownloadableFont {
bool
cache
=
true
,
})
async
{
final
asset
=
'
$assetPrefix$name
.ttf'
;
if
(
await
AssetManifest
.
contains
(
asset
))
{
if
(
await
manifest
.
AssetManifest
.
contains
(
asset
))
{
bundle
??=
rootBundle
;
final
data
=
await
bundle
.
load
(
asset
);
return
TtfFont
(
...
...
printing/lib/src/raster.dart
View file @
d210462
...
...
@@ -66,7 +66,7 @@ class PdfRasterImage extends ImageProvider<PdfRaster> {
}
@override
ImageStreamCompleter
load
Buffer
(
PdfRaster
key
,
DecoderBuff
erCallback
decode
)
{
ImageStreamCompleter
load
Image
(
PdfRaster
key
,
ImageDecod
erCallback
decode
)
{
return
OneFrameImageStreamCompleter
(
_loadAsync
());
}
...
...
printing/pubspec.yaml
View file @
d210462
...
...
@@ -9,7 +9,7 @@ issue_tracker: https://github.com/DavBfr/dart_pdf/issues
screenshots
:
-
description
:
'
Printing
a
document
on
iOS'
path
:
example.png
version
:
5.10.
1
version
:
5.10.
2
environment
:
sdk
:
"
>=2.18.0
<3.0.0"
...
...
Please
register
or
login
to post a comment