Point of Focus

When we click the elevated button. We get navigated to the list items page where 100 list items are there. Now if we left the item page on List Item 24 and went back and again press the elevated button this list item page is getting rebuilt from the start. See the video below:

Now to fix this issue where we want to preserve the state where we left last time and when we return back the list should start from where we left earlier. For this Flutter comes with Widget called PageStorage.

Flutter – Preserve Scroll Position of ListView Using Page Storage

In this article, we will learn How to Preserve the Scroll Position of Listview Using Page Storage. So let’s get started.

Similar Reads

Step By Step Implementation

Step 1: Building main.dart page...

Point of Focus

...

What is Page Storage?

...