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-02-26 17:04:07 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
aad910088e5203b557bfe208f577653e27288aa5
aad91008
1 parent
efef418d
Restore compatibility with Flutter 1.0.0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
printing/CHANGELOG.md
printing/lib/src/printing.dart
printing/pubspec.yaml
printing/CHANGELOG.md
View file @
aad9100
# 1.3.5
*
Restore compatibility with Flutter 1.0.0
# 1.3.4
*
Fix iOS build with Swift
*
Add installation instructions in the Readme
...
...
printing/lib/src/printing.dart
View file @
aad9100
...
...
@@ -36,8 +36,7 @@ mixin Printing {
final
Map
<
String
,
dynamic
>
params
=
<
String
,
dynamic
>{
'doc'
:
Uint8List
.
fromList
(
bytes
),
};
await
_channel
.
invokeMethod
<
void
>(
'writePdf'
,
params
);
return
Future
<
void
>.
value
();
return
await
_channel
.
invokeMethod
(
'writePdf'
,
params
);
}
}
...
...
@@ -49,7 +48,7 @@ mixin Printing {
_onLayout
=
onLayout
;
_channel
.
setMethodCallHandler
(
_handleMethod
);
final
Map
<
String
,
dynamic
>
params
=
<
String
,
dynamic
>{
'name'
:
name
};
await
_channel
.
invokeMethod
<
void
>
(
'printPdf'
,
params
);
return
await
_channel
.
invokeMethod
(
'printPdf'
,
params
);
}
/// Prints a [PdfDocument] or a pdf stream to a local printer using the platform UI
...
...
@@ -86,6 +85,6 @@ mixin Printing {
'w'
:
bounds
.
width
,
'h'
:
bounds
.
height
,
};
await
_channel
.
invokeMethod
<
void
>
(
'sharePdf'
,
params
);
return
await
_channel
.
invokeMethod
(
'sharePdf'
,
params
);
}
}
...
...
printing/pubspec.yaml
View file @
aad9100
...
...
@@ -2,7 +2,7 @@ name: printing
author
:
David PHAM-VAN <dev.nfet.net@gmail.com>
description
:
Plugin that allows Flutter apps to generate and print documents to android or ios compatible printers
homepage
:
https://github.com/DavBfr/dart_pdf/tree/master/printing
version
:
1.3.
4
version
:
1.3.
5
environment
:
sdk
:
"
>=1.19.0
<3.0.0"
...
...
Please
register
or
login
to post a comment