I have a page in Flutter that consists of an image and a back arrow image. I’m using a Stack and Positioned widget to display the back arrow image on the top left corner of the page. However, when the page has a large amount of text and I scroll down, the back arrow image remains fixed in its position and doesn’t scroll along with the content.
I would like to make the back arrow image scroll along with the content when the user scrolls down the page. How can I achieve this effect in Flutter? Are there any specific widgets or techniques I can use to make the positioned widget scrollable?
2
Answers
by change the Stack widget like below you can achieve that
You can achieve it by below code