Showing
5 changed files
with
13 additions
and
8 deletions
@@ -36,6 +36,8 @@ printing/example/android/app/build.gradle | @@ -36,6 +36,8 @@ printing/example/android/app/build.gradle | ||
36 | printing/example/android/app/src/main/AndroidManifest.xml | 36 | printing/example/android/app/src/main/AndroidManifest.xml |
37 | printing/example/android/app/src/main/java/com/example/example/MainActivity.java | 37 | printing/example/android/app/src/main/java/com/example/example/MainActivity.java |
38 | printing/example/android/gradle | 38 | printing/example/android/gradle |
39 | +printing/example/android/local.properties | ||
40 | +printing/example/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java | ||
39 | printing/example/ios/Podfile | 41 | printing/example/ios/Podfile |
40 | printing/example/ios/Flutter/AppFrameworkInfo.plist | 42 | printing/example/ios/Flutter/AppFrameworkInfo.plist |
41 | printing/example/ios/Flutter/Debug.xcconfig | 43 | printing/example/ios/Flutter/Debug.xcconfig |
@@ -50,5 +52,8 @@ printing/example/ios/Runner.xcodeproj/project.pbxproj | @@ -50,5 +52,8 @@ printing/example/ios/Runner.xcodeproj/project.pbxproj | ||
50 | printing/example/ios/Runner.xcodeproj/project.xcworkspace | 52 | printing/example/ios/Runner.xcodeproj/project.xcworkspace |
51 | printing/example/ios/Runner.xcodeproj/xcshareddata | 53 | printing/example/ios/Runner.xcodeproj/xcshareddata |
52 | printing/example/ios/Runner.xcworkspace | 54 | printing/example/ios/Runner.xcworkspace |
55 | +printing/example/ios/Flutter/Generated.xcconfig | ||
56 | +printing/example/ios/Runner/GeneratedPluginRegistrant.h | ||
57 | +printing/example/ios/Runner/GeneratedPluginRegistrant.m | ||
53 | printing/example/.gitignore | 58 | printing/example/.gitignore |
54 | printing/example/.metadata | 59 | printing/example/.metadata |
@@ -344,12 +344,6 @@ class PDFPage extends PdfPage { | @@ -344,12 +344,6 @@ class PDFPage extends PdfPage { | ||
344 | 344 | ||
345 | @deprecated | 345 | @deprecated |
346 | class PDFPoint extends PdfPoint { | 346 | class PDFPoint extends PdfPoint { |
347 | - @deprecated | ||
348 | - double get w => x; | ||
349 | - | ||
350 | - @deprecated | ||
351 | - double get h => y; | ||
352 | - | ||
353 | PDFPoint(double w, double h) : super(w, h); | 347 | PDFPoint(double w, double h) : super(w, h); |
354 | } | 348 | } |
355 | 349 |
@@ -22,6 +22,12 @@ part of pdf; | @@ -22,6 +22,12 @@ part of pdf; | ||
22 | class PdfPoint { | 22 | class PdfPoint { |
23 | final double x, y; | 23 | final double x, y; |
24 | 24 | ||
25 | + @deprecated | ||
26 | + double get w => x; | ||
27 | + | ||
28 | + @deprecated | ||
29 | + double get h => y; | ||
30 | + | ||
25 | const PdfPoint(this.x, this.y); | 31 | const PdfPoint(this.x, this.y); |
26 | 32 | ||
27 | @override | 33 | @override |
@@ -23,7 +23,7 @@ class MyAppState extends State<MyApp> { | @@ -23,7 +23,7 @@ class MyAppState extends State<MyApp> { | ||
23 | final pdf = PdfDocument(deflate: zlib.encode); | 23 | final pdf = PdfDocument(deflate: zlib.encode); |
24 | final page = PdfPage(pdf, pageFormat: PdfPageFormat.a4); | 24 | final page = PdfPage(pdf, pageFormat: PdfPageFormat.a4); |
25 | final g = page.getGraphics(); | 25 | final g = page.getGraphics(); |
26 | - final font = PdfFont(pdf); | 26 | + final font = PdfFont.helvetica(pdf); |
27 | final top = page.pageFormat.height; | 27 | final top = page.pageFormat.height; |
28 | 28 | ||
29 | g.setColor(PdfColor(0.0, 1.0, 1.0)); | 29 | g.setColor(PdfColor(0.0, 1.0, 1.0)); |
-
Please register or login to post a comment