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
2023-03-13 08:49:20 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a678bd3c971b88e26bc3354fbc5ddde524369909
a678bd3c
1 parent
0336c849
Fix Color.toHex()
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
2 deletions
pdf/CHANGELOG.md
pdf/lib/src/pdf/color.dart
test/golden/colors.pdf
test/golden/widgets-table.pdf
pdf/CHANGELOG.md
View file @
a678bd3
...
...
@@ -3,6 +3,7 @@
## 3.10.0
-
Apply BoxShape and BorderRadius to selected Checkbox
[
Joseph Grabinger
]
-
Fix Color.toHex()
## 3.9.0
...
...
pdf/lib/src/pdf/color.dart
View file @
a678bd3
...
...
@@ -153,8 +153,8 @@ class PdfColor {
/// Get an Hexadecimal representation of this color
String
toHex
()
{
final
i
=
toInt
();
final
rgb
=
(
i
&
0xffffff
).
toRadixString
(
16
);
final
a
=
((
i
&
0xff000000
)
>>
24
).
toRadixString
(
16
);
final
rgb
=
(
i
&
0xffffff
).
toRadixString
(
16
).
padLeft
(
6
,
'0'
);
final
a
=
((
i
&
0xff000000
)
>>
24
).
toRadixString
(
16
).
padLeft
(
2
,
'0'
);
return
'#
$rgb$a
'
;
}
...
...
test/golden/colors.pdf
View file @
a678bd3
No preview for this file type
test/golden/widgets-table.pdf
View file @
a678bd3
No preview for this file type
Please
register
or
login
to post a comment