Skip to content

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

Closed
@duleigiser

Description

@duleigiser

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 不知道怎么来的,不能和官方提供的一样吗

IssueShoot

  • 预估时长:3
  • 期望完成时间:2025-3-31
  • 开发难度:中
  • 参与人数:1
  • 需求对接人:zflyluo
  • 验收标准:实现期望改造效果,提 MR并通过 验收无误
  • 备注:最终激励以实际提交 pr 并合并为准。TDesignFlutter贡献指南:https://tdesign.tencent.com/flutter/develop

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions