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-11-03 11:53:09 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3d957448a03f8f76c6defd4be773e36668bf7635
3d957448
1 parent
d39897ab
Add Footer Widget
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
pdf/CHANGELOG.md
pdf/lib/widgets/content.dart
pdf/CHANGELOG.md
View file @
3d95744
...
...
@@ -9,6 +9,7 @@
-
Fix warning in example
-
Format Java code
-
Add optional clipping on Page
-
Add Footer Widget
## 1.3.23
...
...
pdf/lib/widgets/content.dart
View file @
3d95744
...
...
@@ -226,3 +226,43 @@ class Watermark extends StatelessWidget {
);
}
}
class
Footer
extends
StatelessWidget
{
Footer
({
this
.
leading
,
this
.
title
,
this
.
trailing
,
this
.
margin
,
this
.
padding
,
this
.
decoration
,
});
final
Widget
leading
;
final
Widget
title
;
final
Widget
trailing
;
final
EdgeInsets
margin
;
final
EdgeInsets
padding
;
final
BoxDecoration
decoration
;
@override
Widget
build
(
Context
context
)
{
return
Container
(
margin:
margin
,
padding:
padding
,
decoration:
decoration
,
child:
Row
(
mainAxisSize:
MainAxisSize
.
max
,
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
<
Widget
>[
leading
??
SizedBox
(),
title
??
SizedBox
(),
trailing
??
SizedBox
(),
],
));
}
}
...
...
Please
register
or
login
to post a comment