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
2019-05-13 15:29:14 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1bda9dbc4cab2ca77421a17c2848d43ec569357e
1bda9dbc
1 parent
51158144
Deprecate the document argument in Printing.sharePdf()
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
pdf/CHANGELOG.md
pdf/pubspec.yaml
printing/CHANGELOG.md
printing/lib/src/printing.dart
pdf/CHANGELOG.md
View file @
1bda9db
# 1.3.10
*
Deprecate the document argument in Printing.sharePdf()
# 1.3.9
*
Fix Transform Widget alignment
*
Fix CustomPaint Widget size
...
...
pdf/pubspec.yaml
View file @
1bda9db
...
...
@@ -4,7 +4,7 @@ description: A pdf producer for Dart. It can create pdf files for both web or fl
homepage
:
https://github.com/DavBfr/dart_pdf/tree/master/pdf
repository
:
https://github.com/DavBfr/dart_pdf
issue_tracker
:
https://github.com/DavBfr/dart_pdf/issues
version
:
1.3.
9
version
:
1.3.
10
environment
:
sdk
:
"
>=2.1.0
<3.0.0"
...
...
printing/CHANGELOG.md
View file @
1bda9db
# 2.0.3
*
Add file save and view to example application
*
Convert print screen example to Widgets
*
Deprecate the document argument in Printing.sharePdf()
# 2.0.2
*
Fix example application
...
...
printing/lib/src/printing.dart
View file @
1bda9db
...
...
@@ -52,8 +52,10 @@ mixin Printing {
}
/// Prints a [PdfDocument] or a pdf stream to a local printer using the platform UI
@deprecated
static
Future
<
void
>
printPdf
({
PdfDocument
document
,
List
<
int
>
bytes
})
async
{
@Deprecated
(
'use Printing.layoutPdf(onLayout: (_) => document.save());'
)
static
Future
<
void
>
printPdf
(
{
@Deprecated
(
'use bytes with document.save()'
)
PdfDocument
document
,
List
<
int
>
bytes
})
async
{
assert
(
document
!=
null
||
bytes
!=
null
);
assert
(!(
document
==
null
&&
bytes
==
null
));
...
...
@@ -64,7 +66,7 @@ mixin Printing {
/// Displays a platform popup to share the Pdf document to another application
static
Future
<
void
>
sharePdf
(
{
PdfDocument
document
,
{
@Deprecated
(
'use bytes with document.save()'
)
PdfDocument
document
,
List
<
int
>
bytes
,
String
filename
,
Rect
bounds
})
async
{
...
...
Please
register
or
login
to post a comment