Cupertino Modal底部纸与内部导航配合
是否可以有两个具有内部导航但高度不同的模态底部表?例如,第一个底部表具有3个元素,并大小适用于其子女(列带3个列表图块),第二个底部的底部表相同,但有5个元素(列带有5个列表图块)?就像在图像上带有导航之间的图像一样。
我感觉到,当我添加导航器时,它会扩展,占用所有可用空间,并且无法将其尺寸缩小到其内容上。一个具有约束的容器会有所帮助,但随后两个底部的底片都具有相同的高度。
Is it possible to have two modal bottom sheets with inside navigation but different height? For instance, the first bottom sheet has 3 elements and sized to its child (Column with 3 List Tiles) and the second bottom sheet is the same but has 5 elements (Column with 5 List Tiles)? Like on the image with navigation between them.
I have a feeling that when I add a Navigator it expands, takes all the available space and I can't size it to its content. A container with constraints helps, but then again both bottom sheets have the same height.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您提到两个底部纸时,我假设您想说一个带有内部导航的底部表,不是吗?
使用导航器无法实现。该小部件旨在始终扩展到最大可用。
您可以尝试使用另一种方法,例如使用堆栈小部件或AnimatedCrossfade
When you mention two bottom sheets, I would assume you want to say a single bottom sheet with inside navigation, no?
It is not possible to achieve by using a Navigator. This widget is designed to always expand to the maximum available.
You could try to use another approach, like using a Stack widget or a AnimatedCrossFade one