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-17 17:56:40 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
db03fb5e4c2fa46dbe1abc89a9726dcfd055c1fe
db03fb5e
1 parent
a123c5f4
Fix Image width and height attributes
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
pdf/CHANGELOG.md
pdf/lib/widgets/image.dart
pdf/pubspec.yaml
pdf/CHANGELOG.md
View file @
db03fb5
# Changelog
## 1.6.1
-
Fix Image width and height attributes
## 1.6.0
-
Improve Annotations
...
...
pdf/lib/widgets/image.dart
View file @
db03fb5
...
...
@@ -102,12 +102,14 @@ class Image extends Widget {
@override
void
layout
(
Context
context
,
BoxConstraints
constraints
,
{
bool
parentUsesSize
=
false
})
{
final
double
w
=
constraints
.
hasBoundedWidth
?
constraints
.
maxWidth
:
constraints
.
constrainWidth
(
image
.
width
.
toDouble
());
final
double
h
=
constraints
.
hasBoundedHeight
?
constraints
.
maxHeight
:
constraints
.
constrainHeight
(
image
.
height
.
toDouble
());
final
double
w
=
width
??
(
constraints
.
hasBoundedWidth
?
constraints
.
maxWidth
:
constraints
.
constrainWidth
(
image
.
width
.
toDouble
()));
final
double
h
=
height
??
(
constraints
.
hasBoundedHeight
?
constraints
.
maxHeight
:
constraints
.
constrainHeight
(
image
.
height
.
toDouble
()));
final
FittedSizes
sizes
=
applyBoxFit
(
fit
,
...
...
pdf/pubspec.yaml
View file @
db03fb5
...
...
@@ -4,7 +4,7 @@ description: A pdf producer for Dart. It can create pdf files for both web or fl
homepage
:
https://github.com/DavBfr/dart_pdf/tree/master/pdf
repository
:
https://github.com/DavBfr/dart_pdf
issue_tracker
:
https://github.com/DavBfr/dart_pdf/issues
version
:
1.6.
0
version
:
1.6.
1
environment
:
sdk
:
"
>=2.3.0
<3.0.0"
...
...
Please
register
or
login
to post a comment