David PHAM-VAN

Fix compatibility issues

... ... @@ -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
... ...
... ... @@ -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);
}
... ...
... ... @@ -45,6 +45,6 @@ class PdfPageFormat {
@override
String toString() {
return "${width}x${height}";
return "${width}x$height";
}
}
... ...
... ... @@ -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
... ...
... ... @@ -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));
... ...