[英]Which widget in flutter can I use to scroll the screen up on click of down arrow?
Couldn't find the screenshots to show.找不到要显示的屏幕截图。 I want to know which widget can I use for the following functionality.
我想知道我可以将哪个小部件用于以下功能。
A full size screen with no appbar or bottom bar.没有应用栏或底栏的全尺寸屏幕。 A full screen video is playing with its title and 2 lines description in the bottom and lastly, a down faces arrow in the center.
正在播放一个全屏视频,其标题和 2 行描述在底部,最后是中间的向下箭头。 On click of this arrow, the screen goes up, the video takes up a small screen, the complete description becomes visible and other things become visible as screen becomes scrollable.
单击此箭头时,屏幕向上,视频占据一个小屏幕,完整的描述变得可见,并且随着屏幕变得可滚动,其他内容变得可见。 Please help me find the widget that I can use here.
请帮我找到我可以在这里使用的小部件。
There is no one widget to do everything you mentioned above.没有一个小部件可以完成您上面提到的所有事情。 You will have to code it yourself.
您必须自己编写代码。 In order to scroll the screen up you should use a
ScrollController
and attach it to your ListView
and call animateTo
.为了向上滚动屏幕,您应该使用
ScrollController
并将其附加到您的ListView
并调用animateTo
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.