简体   繁体   English

我可以使用 flutter 中的哪个小部件在单击向下箭头时向上滚动屏幕?

[英]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.

相关问题 颤振,显示箭头指示用户可以向上或向下滚动 - Flutter, display arrow to indicate the user can scroll up or down 如何用滚动拇指上下滚动屏幕? - How can I make the screen scroll up and down with the scroll thumb? 如何使用 Flutter 构建一个可以拖动到全屏的底部表单小部件? - How to use Flutter to build a bottom sheet widget which is able to drag up to full screen? 如何根据Flutter中的按钮单击来上下移动一个小部件? - How to move Up and Down one widget according to button click in Flutter? 从屏幕底部弹出一个小窗口使用什么 Widget Flutter - What Widget to use for a small Pop Up from the bottom of the screen Flutter jQuery插件的小部件可以上下滚动数字? - Jquery plugin for widget to scroll number up and down? 我无法在android应用程序中向下滚动足够远的距离 - I can't scroll far enough down the screen in android application 单击按钮时GridView向下和向上滚动? - GridView scroll down and up when click on buttons? 在 flutter 中使用 SingleChildScollView 时无法滚动屏幕 - I can't Scroll my Screen when using SingleChildScollView in flutter 我正在使用 flutter bottomNavigatonBar 小部件,有什么可以提升的吗? - I am using flutter bottomNavigatonBar widget, Is there anything which it can be raised?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM