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
2021-03-06 08:38:15 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b1ee0be53814bda35bf103dd7de037db3d767dca
b1ee0be5
1 parent
d66410e0
Fix some linting issues
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
12 deletions
demo/lib/app.dart
pdf/CHANGELOG.md
pdf/lib/src/pdf/io/js.dart
pdf/pubspec.yaml
printing/CHANGELOG.md
printing/lib/src/pdf_preview.dart
printing/lib/src/printing.dart
demo/lib/app.dart
View file @
b1ee0be
...
...
@@ -127,9 +127,6 @@ class MyAppState extends State<MyApp> with SingleTickerProviderStateMixin {
final
bytes
=
await
build
(
pageFormat
);
final
appDocDir
=
await
getApplicationDocumentsDirectory
();
if
(
appDocDir
==
null
)
{
return
;
}
final
appDocPath
=
appDocDir
.
path
;
final
file
=
File
(
appDocPath
+
'/'
+
'document.pdf'
);
print
(
'Save as file
${file.path}
...'
);
...
...
pdf/CHANGELOG.md
View file @
b1ee0be
# Changelog
## 3.0.2
-
Fix some linting issues
## 3.0.1
-
Improve internal null-safety
...
...
pdf/lib/src/pdf/io/js.dart
View file @
b1ee0be
...
...
@@ -19,4 +19,4 @@ import 'package:archive/archive.dart';
import
'package:pdf/pdf.dart'
;
/// Zip compression function
DeflateCallback
defaultDeflate
=
ZLibEncoder
().
encode
;
DeflateCallback
defaultDeflate
=
const
ZLibEncoder
().
encode
;
...
...
pdf/pubspec.yaml
View file @
b1ee0be
...
...
@@ -4,7 +4,7 @@ description: A pdf producer for Dart. It can create pdf files for both web or fl
homepage
:
https://github.com/DavBfr/dart_pdf/tree/master/pdf
repository
:
https://github.com/DavBfr/dart_pdf
issue_tracker
:
https://github.com/DavBfr/dart_pdf/issues
version
:
3.0.
1
version
:
3.0.
2
environment
:
sdk
:
"
>=2.12.0-0
<3.0.0"
...
...
printing/CHANGELOG.md
View file @
b1ee0be
...
...
@@ -3,6 +3,7 @@
## 5.0.2
-
Fix iOS/macOS release build not working
-
Fix some linting issues
## 5.0.1
...
...
printing/lib/src/pdf_preview.dart
View file @
b1ee0be
...
...
@@ -390,9 +390,9 @@ class _PdfPreviewState extends State<PdfPreview> {
final
key
=
keys
[
index
];
final
val
=
_pageFormats
[
key
];
return
DropdownMenuItem
<
PdfPageFormat
>(
value:
val
,
child:
Text
(
key
,
style:
TextStyle
(
color:
theme
.
accentIconTheme
.
color
)),
value:
val
,
);
},
),
...
...
@@ -418,11 +418,6 @@ class _PdfPreviewState extends State<PdfPreview> {
color:
disabledColor
,
selectedBorderColor:
color
,
selectedColor:
color
,
children:
<
Widget
>[
Transform
.
rotate
(
angle:
-
pi
/
2
,
child:
const
Icon
(
Icons
.
note_outlined
)),
const
Icon
(
Icons
.
note_outlined
),
],
onPressed:
(
int
index
)
{
setState
(()
{
horizontal
=
index
==
1
;
...
...
@@ -430,6 +425,11 @@ class _PdfPreviewState extends State<PdfPreview> {
});
},
isSelected:
<
bool
>[
horizontal
==
false
,
horizontal
==
true
],
children:
<
Widget
>[
Transform
.
rotate
(
angle:
-
pi
/
2
,
child:
const
Icon
(
Icons
.
note_outlined
)),
const
Icon
(
Icons
.
note_outlined
),
],
),
);
}
...
...
printing/lib/src/printing.dart
View file @
b1ee0be
...
...
@@ -84,6 +84,7 @@ mixin Printing {
for
(
final
printer
in
printers
)
if
(
printer
.
isAvailable
)
SimpleDialogOption
(
onPressed:
()
=>
Navigator
.
of
(
context
).
pop
(
printer
),
child:
Text
(
printer
.
name
,
style:
TextStyle
(
...
...
@@ -92,7 +93,6 @@ mixin Printing {
:
FontStyle
.
normal
,
),
),
onPressed:
()
=>
Navigator
.
of
(
context
).
pop
(
printer
),
),
],
),
...
...
Please
register
or
login
to post a comment