Skip to content

[Popup] 无法应用child设置的高度,只能通过maxHeightRatio设置 #599

Closed
@goodchengwang

Description

@goodchengwang

tdesign-flutter 版本

0.2.0

重现链接

No response

重现步骤/代码

TDSlidePopupRoute(
        modalBarrierColor: TDTheme.of(context).fontGyColor2,
        slideTransitionFrom: SlideTransitionFrom.bottom,
        builder: (context) {
          return TDPopupBottomDisplayPanel(
            title: title,
            closeClick: () {
              context.maybePop();
            },
            maxHeightRatio: 0.3,
            minHeightRatio: 0.3,
            child: Container(
height: 200
),
          );
        },
      ),

期望结果

根据子元素高度自动设置高度,根据maxHeightRatio来选择是否滚动

实际结果

No response

Flutter版本

No response

设备与机型信息

No response

系统版本

No response

补充说明

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions