New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ink.image fitWidth property not working with flexible parents #104513
Labels
a: images
Loading, displaying, rendering images
f: material design
flutter/packages/flutter/material repository.
found in release: 3.0
Found to occur in 3.0
found in release: 3.1
Found to occur in 3.1
framework
flutter/packages/flutter repository. See also f: labels.
has reproducible steps
The issue has been confirmed reproducible and is ready to work on
team-design
Owned by Design Languages team
triaged-design
Triaged by Design Languages team
Comments
exaby73
added
found in release: 3.0
Found to occur in 3.0
found in release: 3.1
Found to occur in 3.1
f: material design
flutter/packages/flutter/material repository.
framework
flutter/packages/flutter repository. See also f: labels.
has reproducible steps
The issue has been confirmed reproducible and is ready to work on
a: images
Loading, displaying, rendering images
and removed
in triage
Presently being triaged by the triage team
labels
May 25, 2022
flutter-triage-bot
bot
added
multiteam-retriage-candidate
team-design
Owned by Design Languages team
triaged-design
Triaged by Design Languages team
labels
Jul 8, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
a: images
Loading, displaying, rendering images
f: material design
flutter/packages/flutter/material repository.
found in release: 3.0
Found to occur in 3.0
found in release: 3.1
Found to occur in 3.1
framework
flutter/packages/flutter repository. See also f: labels.
has reproducible steps
The issue has been confirmed reproducible and is ready to work on
team-design
Owned by Design Languages team
triaged-design
Triaged by Design Languages team
Steps to Reproduce
Ink.image
inside aColumn
double.infinity
BoxFit.fitWidth
Expected results:
I would like to see the
fitWidth
property working exactly as in any image widget.Actual results:
I see the height not fitting to the width, different from what happens in any image widget.
Code samples and investigation
Error sample (with column)
First image: no height set
Second image: height set as 40 (as mentioned in the code) [works]
Working sample (without column)
Image with all same properties inside column sample (works as expected)
Please notice that the
Ink.image
is used with theInkWell
, but I'm ommiting it here to be more clear.Thoughts
Seems that
Ink.image
is having problems to deal with dynamic size parents.Logs
All logs are from
Ink.image
andColumn
example.The analyze errors are not being actually called, since I'm putting the example directly on
main.dart
The text was updated successfully, but these errors were encountered: