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
2018-12-09 07:08:41 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a4764e7a27fe70eb3f4a8d211dbec36d2df1c9c2
a4764e7a
1 parent
8f6bf402
Fix compatibility issues
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
8 deletions
.gitignore
pdf/lib/src/compatibility.dart
pdf/lib/src/page_format.dart
pdf/lib/src/point.dart
printing/example/lib/main.dart
.gitignore
View file @
a4764e7
...
...
@@ -36,6 +36,8 @@ printing/example/android/app/build.gradle
printing/example/android/app/src/main/AndroidManifest.xml
printing/example/android/app/src/main/java/com/example/example/MainActivity.java
printing/example/android/gradle
printing/example/android/local.properties
printing/example/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
printing/example/ios/Podfile
printing/example/ios/Flutter/AppFrameworkInfo.plist
printing/example/ios/Flutter/Debug.xcconfig
...
...
@@ -50,5 +52,8 @@ printing/example/ios/Runner.xcodeproj/project.pbxproj
printing/example/ios/Runner.xcodeproj/project.xcworkspace
printing/example/ios/Runner.xcodeproj/xcshareddata
printing/example/ios/Runner.xcworkspace
printing/example/ios/Flutter/Generated.xcconfig
printing/example/ios/Runner/GeneratedPluginRegistrant.h
printing/example/ios/Runner/GeneratedPluginRegistrant.m
printing/example/.gitignore
printing/example/.metadata
...
...
pdf/lib/src/compatibility.dart
View file @
a4764e7
...
...
@@ -344,12 +344,6 @@ class PDFPage extends PdfPage {
@deprecated
class
PDFPoint
extends
PdfPoint
{
@deprecated
double
get
w
=>
x
;
@deprecated
double
get
h
=>
y
;
PDFPoint
(
double
w
,
double
h
)
:
super
(
w
,
h
);
}
...
...
pdf/lib/src/page_format.dart
View file @
a4764e7
...
...
@@ -45,6 +45,6 @@ class PdfPageFormat {
@override
String
toString
()
{
return
"
${width}
x
$
{height}
"
;
return
"
${width}
x
$
height
"
;
}
}
...
...
pdf/lib/src/point.dart
View file @
a4764e7
...
...
@@ -22,6 +22,12 @@ part of pdf;
class
PdfPoint
{
final
double
x
,
y
;
@deprecated
double
get
w
=>
x
;
@deprecated
double
get
h
=>
y
;
const
PdfPoint
(
this
.
x
,
this
.
y
);
@override
...
...
printing/example/lib/main.dart
View file @
a4764e7
...
...
@@ -23,7 +23,7 @@ class MyAppState extends State<MyApp> {
final
pdf
=
PdfDocument
(
deflate:
zlib
.
encode
);
final
page
=
PdfPage
(
pdf
,
pageFormat:
PdfPageFormat
.
a4
);
final
g
=
page
.
getGraphics
();
final
font
=
PdfFont
(
pdf
);
final
font
=
PdfFont
.
helvetica
(
pdf
);
final
top
=
page
.
pageFormat
.
height
;
g
.
setColor
(
PdfColor
(
0.0
,
1.0
,
1.0
));
...
...
Please
register
or
login
to post a comment