Showing
4 changed files
with
8 additions
and
8 deletions
@@ -29,7 +29,7 @@ pdf/roboto.ttf: | @@ -29,7 +29,7 @@ pdf/roboto.ttf: | ||
29 | format: format-dart format-clang | 29 | format: format-dart format-clang |
30 | 30 | ||
31 | format-dart: $(DART_SRC) | 31 | format-dart: $(DART_SRC) |
32 | - dartfmt -w $^ | 32 | + dartfmt -w --fix $^ |
33 | 33 | ||
34 | format-clang: $(CLNG_SRC) | 34 | format-clang: $(CLNG_SRC) |
35 | clang-format -style=Chromium -i $^ | 35 | clang-format -style=Chromium -i $^ |
@@ -74,7 +74,7 @@ class PdfDocument { | @@ -74,7 +74,7 @@ class PdfDocument { | ||
74 | final DeflateCallback deflate; | 74 | final DeflateCallback deflate; |
75 | 75 | ||
76 | /// These map the page modes just defined to the pagemodes setting of Pdf. | 76 | /// These map the page modes just defined to the pagemodes setting of Pdf. |
77 | - static const _PdfPageModes = const [ | 77 | + static const _PdfPageModes = [ |
78 | "/UseNone", | 78 | "/UseNone", |
79 | "/UseOutlines", | 79 | "/UseOutlines", |
80 | "/UseThumbs", | 80 | "/UseThumbs", |
@@ -19,11 +19,11 @@ | @@ -19,11 +19,11 @@ | ||
19 | part of pdf; | 19 | part of pdf; |
20 | 20 | ||
21 | class PdfPageFormat { | 21 | class PdfPageFormat { |
22 | - static const a4 = const PdfPageFormat(595.28, 841.89); | ||
23 | - static const a3 = const PdfPageFormat(841.89, 1190.55); | ||
24 | - static const a5 = const PdfPageFormat(420.94, 595.28); | ||
25 | - static const letter = const PdfPageFormat(612.0, 792.0); | ||
26 | - static const legal = const PdfPageFormat(612.0, 1008.0); | 22 | + static const a4 = PdfPageFormat(595.28, 841.89); |
23 | + static const a3 = PdfPageFormat(841.89, 1190.55); | ||
24 | + static const a5 = PdfPageFormat(420.94, 595.28); | ||
25 | + static const letter = PdfPageFormat(612.0, 792.0); | ||
26 | + static const legal = PdfPageFormat(612.0, 1008.0); | ||
27 | 27 | ||
28 | static const point = 1.0; | 28 | static const point = 1.0; |
29 | static const inch = 72.0; | 29 | static const inch = 72.0; |
@@ -25,7 +25,7 @@ import 'package:flutter/widgets.dart'; | @@ -25,7 +25,7 @@ import 'package:flutter/widgets.dart'; | ||
25 | import 'package:pdf/pdf.dart'; | 25 | import 'package:pdf/pdf.dart'; |
26 | 26 | ||
27 | class Printing { | 27 | class Printing { |
28 | - static const MethodChannel _channel = const MethodChannel('printing'); | 28 | + static const MethodChannel _channel = MethodChannel('printing'); |
29 | 29 | ||
30 | static Future<Null> printPdf({PdfDocument document, List<int> bytes}) async { | 30 | static Future<Null> printPdf({PdfDocument document, List<int> bytes}) async { |
31 | assert(document != null || bytes != null); | 31 | assert(document != null || bytes != null); |
-
Please register or login to post a comment