Skip to content
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

[TDImage] 设置 type为 AioImageType.fitWidth 同时设置fit: BoxFit.fitWidth后 高度一直是72,并不能自适应高度。 #471

Open
duleigiser opened this issue Feb 6, 2025 · 1 comment

Comments

@duleigiser
Copy link
Contributor

tdesign-flutter 版本

0.1.8

重现链接

No response

重现步骤

AioImage(
imgUrl: xxx,
width: 335,
fit: BoxFit.fitWidth,
type: AioImageType.fitWidth,
)

期望结果

高度能和 Image.network 提供高度和BoxFit.fitWidth 高度能自适应。

实际结果

高度一直是72

Flutter版本

3.24

设备与机型信息

ios(iphone 16)

系统版本

ios 18.2

补充说明

这个默认72 不知道怎么来的,不能和官方提供的一样吗

Copy link
Contributor

github-actions bot commented Feb 6, 2025

👋 @duleigiser,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@duleigiser duleigiser changed the title [TDImage] 设置 type为 AioImageType.fitWidth 同时设置 [TDImage] 设置 type为 AioImageType.fitWidth 同时设置fit: BoxFit.fitWidth后 高度一直是72,并不能自适应高度。 Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant