【问题标题】:How to set flutter bottom sheet height fit with inner content?如何设置与内部内容匹配的颤动底部工作表高度?
【发布时间】:2020-07-21 06:06:32
【问题描述】:

如何在没有固定高度的情况下通过其内部内容控制颤动的底部工作表高度?完全我只想改变其内部内容大小的高度

【问题讨论】:

标签: flutter flutter-layout


【解决方案1】:

使用ConstrainedBox 提供所需的最小和最大高度和宽度,ConsrainedBox 的子级应该是你的底部表container,你很高兴。

这是ConstrainedBox 上的 youtube 链接。

以下是处理框约束的更多方法:https://flutter.dev/docs/development/ui/layout/box-constraints

【讨论】:

    猜你喜欢
    • 2021-05-25
    • 2022-11-28
    • 1970-01-01
    • 2015-11-11
    • 2013-03-21
    • 2019-02-10
    • 1970-01-01
    • 2019-01-23
    • 2013-08-20
    相关资源
    最近更新 更多