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-02 08:20:26 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
925cfbd1ad1dafc58ff421275e8caf8b97312aa9
925cfbd1
1 parent
6d2874c7
Remove useless const keywords
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
Makefile
pdf/lib/src/document.dart
pdf/lib/src/page_format.dart
printing/lib/printing.dart
Makefile
View file @
925cfbd
...
...
@@ -29,7 +29,7 @@ pdf/roboto.ttf:
format
:
format-dart format-clang
format-dart
:
$(DART_SRC)
dartfmt -w
$^
dartfmt -w
--fix
$^
format-clang
:
$(CLNG_SRC)
clang-format -style
=
Chromium -i
$^
...
...
pdf/lib/src/document.dart
View file @
925cfbd
...
...
@@ -74,7 +74,7 @@ class PdfDocument {
final
DeflateCallback
deflate
;
/// These map the page modes just defined to the pagemodes setting of Pdf.
static
const
_PdfPageModes
=
const
[
static
const
_PdfPageModes
=
[
"/UseNone"
,
"/UseOutlines"
,
"/UseThumbs"
,
...
...
pdf/lib/src/page_format.dart
View file @
925cfbd
...
...
@@ -19,11 +19,11 @@
part of
pdf
;
class
PdfPageFormat
{
static
const
a4
=
const
PdfPageFormat
(
595.28
,
841.89
);
static
const
a3
=
const
PdfPageFormat
(
841.89
,
1190.55
);
static
const
a5
=
const
PdfPageFormat
(
420.94
,
595.28
);
static
const
letter
=
const
PdfPageFormat
(
612.0
,
792.0
);
static
const
legal
=
const
PdfPageFormat
(
612.0
,
1008.0
);
static
const
a4
=
PdfPageFormat
(
595.28
,
841.89
);
static
const
a3
=
PdfPageFormat
(
841.89
,
1190.55
);
static
const
a5
=
PdfPageFormat
(
420.94
,
595.28
);
static
const
letter
=
PdfPageFormat
(
612.0
,
792.0
);
static
const
legal
=
PdfPageFormat
(
612.0
,
1008.0
);
static
const
point
=
1.0
;
static
const
inch
=
72.0
;
...
...
printing/lib/printing.dart
View file @
925cfbd
...
...
@@ -25,7 +25,7 @@ import 'package:flutter/widgets.dart';
import
'package:pdf/pdf.dart'
;
class
Printing
{
static
const
MethodChannel
_channel
=
const
MethodChannel
(
'printing'
);
static
const
MethodChannel
_channel
=
MethodChannel
(
'printing'
);
static
Future
<
Null
>
printPdf
({
PdfDocument
document
,
List
<
int
>
bytes
})
async
{
assert
(
document
!=
null
||
bytes
!=
null
);
...
...
Please
register
or
login
to post a comment