Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
212 views
in Technique[技术] by (71.8m points)

android - 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. 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.

question from:https://stackoverflow.com/questions/65878828/which-widget-in-flutter-can-i-use-to-scroll-the-screen-up-on-click-of-down-arrow

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...