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
2020-02-02 18:39:27 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3b6f613430da2e5a0b6d96ce83e86aa6a4a4a64a
3b6f6134
1 parent
1702086d
Add PageTheme.copyWith
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
pdf/CHANGELOG.md
pdf/lib/widgets/page_theme.dart
pdf/CHANGELOG.md
View file @
3b6f613
...
...
@@ -7,6 +7,7 @@
-
Reorder MultiPage paint operations
-
Fix Bullet widget styling
-
Fix HSV and HSL Color constructors
-
Add PageTheme.copyWith
## 1.4.1
...
...
pdf/lib/widgets/page_theme.dart
View file @
3b6f613
...
...
@@ -68,4 +68,23 @@ class PageTheme {
pageFormat
.
marginRight
,
pageFormat
.
marginBottom
);
}
}
PageTheme
copyWith
({
PdfPageFormat
pageFormat
,
BuildCallback
buildBackground
,
BuildCallback
buildForeground
,
Theme
theme
,
PageOrientation
orientation
,
EdgeInsets
margin
,
bool
clip
,
})
=>
PageTheme
(
pageFormat:
pageFormat
??
this
.
pageFormat
,
buildBackground:
buildBackground
??
this
.
buildBackground
,
buildForeground:
buildForeground
??
this
.
buildForeground
,
theme:
theme
??
this
.
theme
,
orientation:
orientation
??
this
.
orientation
,
margin:
margin
??
this
.
margin
,
clip:
clip
??
this
.
clip
,
);
}
...
...
Please
register
or
login
to post a comment