 Hello guys, so this video is just an answer to the question asked on my previous video So in the previous video, we have seen the bottom navigation bar in Flutter So I got a question that if I press switch to another screen in the bottom navigation bar So will the state would be maintained for the screen? For example, if I want to maintain this scroll position So will it be maintained? So I said no it will not be maintained So in order to maintain that you need to do one extra thing. So I ask for the video by this person So let's go to the project and see the same So in this project if you go to favorite page, you can see it is a scroll level and Let's say I want to keep the scroll position till this if I go back and go back to favorite and you can see this position is not maintained It is scroll to the beginning. I just go here This is in the bottom and go to the home page come back and you can see it is Not maintained. Same way for setting page. We have this. I scrolled it to the privacy and security Go to home page Come back and this scroll position is not maintained So if you want to maintain the scroll position, there is another class we can use So just go to your scroll view, whatever it is So I'm using here for the favorite page. So you have to use the key There's a key property. So for that, we have to use one key that is page storage Key Okay, so page storage key and here you have to specify some unique name So let's give it fav here And copy this Save this and go to settings page Same way. I will go to the list view and use the key property And assign the same over here. So I already copied And here make sure you're not giving the same if you will give it the same So same key would be maintained and the position will be maintained for the same two screens or multiple screens So I just make it with settings. I will Let you know by putting it the same so that you can see what is happening with the same key Okay, so now if I scroll down to the privacy come back to home And go back to settings. You can see this scroll position is maintained Same way for favorite. We have added scroll down is your phone charts So go to home Come back And you can see the scroll position is maintained And by the way, if you put it the same key, we have a problem here. Let me show you So make sure save this If your key is same, you may face this problem So for example, I just scroll it to the bottom If I go to the settings I just scroll it I go to the home Come back the position is maintained But if I go to home, you can see this is already scrolled to the bottom If you scroll it up I go to the setting You can see it is also scrolled up if I scroll it down I just go to this favorite and you can see it is already scrolled to Down So make sure every of your list view whatever page you are using this storage key. It should be unique So that is all for this video. Thank you