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
2019-02-26 20:02:37 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1e0f9a0ecbf8e9a9bece52721b508dbf631c19ab
1e0f9a0e
1 parent
ec2467e0
Add Document.save() method
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
5 deletions
pdf/CHANGELOG.md
pdf/example/main.dart
pdf/lib/widgets/document.dart
pdf/test/metrics.dart
pdf/test/widget_test.dart
printing/CHANGELOG.md
printing/example/README.md
printing/pubspec.yaml
pdf/CHANGELOG.md
View file @
1e0f9a0
# 1.3.3
*
Fix a bug with the RichText Widget
*
Update code to Dart 2.1.0
*
Add Document.save() method
# 1.3.2
*
Fix dart lint warnings
...
...
pdf/example/main.dart
View file @
1e0f9a0
...
...
@@ -147,5 +147,5 @@ void main() {
]));
final
File
file
=
File
(
'example.pdf'
);
file
.
writeAsBytesSync
(
pdf
.
document
.
save
());
file
.
writeAsBytesSync
(
pdf
.
save
());
}
...
...
pdf/lib/widgets/document.dart
View file @
1e0f9a0
...
...
@@ -41,6 +41,8 @@ class Document {
void
addPage
(
BasePage
page
)
{
page
.
generate
(
this
);
}
List
<
int
>
save
()
=>
document
.
save
();
}
typedef
BuildCallback
=
Widget
Function
(
Context
context
);
...
...
pdf/test/metrics.dart
View file @
1e0f9a0
...
...
@@ -85,6 +85,6 @@ void main() {
}
final
File
file
=
File
(
'metrics.pdf'
);
file
.
writeAsBytesSync
(
pdf
.
document
.
save
());
file
.
writeAsBytesSync
(
pdf
.
save
());
});
}
...
...
pdf/test/widget_test.dart
View file @
1e0f9a0
...
...
@@ -176,6 +176,6 @@ void main() {
])));
final
File
file
=
File
(
'widgets.pdf'
);
file
.
writeAsBytesSync
(
pdf
.
document
.
save
());
file
.
writeAsBytesSync
(
pdf
.
save
());
});
}
...
...
printing/CHANGELOG.md
View file @
1e0f9a0
# 1.3.5
*
Restore compatibility with Flutter 1.0.0
*
Update code to Dart 2.1.0
*
Depends on pdf 1.3.3
# 1.3.4
*
Fix iOS build with Swift
...
...
printing/example/README.md
View file @
1e0f9a0
...
...
@@ -43,7 +43,7 @@ class MyApp extends StatelessWidget {
)),
);
}));
return
pdf
.
document
.
save
();
return
pdf
.
save
();
}
}
```
...
...
printing/pubspec.yaml
View file @
1e0f9a0
...
...
@@ -13,7 +13,7 @@ environment:
dependencies
:
flutter
:
sdk
:
flutter
pdf
:
"
^1.3.
2
"
pdf
:
"
^1.3.
3
"
dev_dependencies
:
flutter_test
:
...
...
Please
register
or
login
to post a comment