-
Notifications
You must be signed in to change notification settings - Fork 30.6k
[flutter_svg] Incorrect behavior of BoxFit parameter #158496
Copy link
Copy link
Closed
flutter/packages
#11012Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listfound in release: 3.35Found to occur in 3.35Found to occur in 3.35found in release: 3.38Found to occur in 3.38Found to occur in 3.38has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: flutter_svgThe Flutter SVG drawing packagesThe Flutter SVG drawing packagespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamTriaged by Ecosystem team
Description
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listfound in release: 3.35Found to occur in 3.35Found to occur in 3.35found in release: 3.38Found to occur in 3.38Found to occur in 3.38has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: flutter_svgThe Flutter SVG drawing packagesThe Flutter SVG drawing packagespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamTriaged by Ecosystem team
Type
Fields
Give feedbackNo fields configured for issues without a type.
What package does this bug report belong to?
flutter_svg
What target platforms are you seeing this bug on?
iOS
Have you already upgraded your packages?
Yes
Dependency versions
pubspec.lock
Steps to reproduce
ColumnorRow, which containsExpandedelement withsvgicon asset in itfitpropertyExpected results
I expect it to behave like
Image.asset(path, fit: fit)would doActual results
Behavior differs from expected
Code sample
Code sample
Screenshots or Videos
Screenshots / Video demonstration
On the left side is
pngimage, on the right issvg:BoxFit.contain
BoxFit.fill
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output