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-04-25 15:36:32 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ae9b9b61f39032535ed9d33da79c8271313e0529
ae9b9b61
1 parent
5b395748
Fix PdfColors.shade()
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
pdf/CHANGELOG.md
pdf/lib/src/color.dart
pdf/CHANGELOG.md
View file @
ae9b9b6
...
...
@@ -3,6 +3,7 @@
## 1.7.0
-
Implement Linear and Radial gradients in BoxDecoration
-
Fix PdfColors.shade()
## 1.6.2
...
...
pdf/lib/src/color.dart
View file @
ae9b9b6
...
...
@@ -149,7 +149,8 @@ class PdfColor {
final
double
ds
=
1.5
-
strength
;
final
PdfColorHsl
hsl
=
toHsl
();
return
PdfColorHsl
(
hsl
.
hue
,
hsl
.
saturation
,
hsl
.
lightness
*
ds
);
return
PdfColorHsl
(
hsl
.
hue
,
hsl
.
saturation
,
(
hsl
.
lightness
*
ds
).
clamp
(
0.0
,
1.0
));
}
/// Get a complementary color with hue shifted by -120°
...
...
Please
register
or
login
to post a comment