 Hello guys, in my last video, I have shown how to use snack bar and provide the undo functionality and I got a comment on the top of that that please create a video to avoid overlapping of snack bar. So let's take a look on this first what is overlapping of snack bar and then we will see how to resolve it. Let's take a look on the problem first. So let's say I delete this def then I delete this ghi if I do undo I will do undo you can see I'm getting this. So this is just a conflection and as for our logic this will not work. So one of the simple solution to avoid this is that we have to do what we have to hide the snack bar whenever we are going to delete any item. Let's go to that delete and what we were doing over there on tap we were just doing this functionality but before that we have to hide the previously shown snack bar which was giving us the undo functionality. So once we do that this will not cause that kind of problem. So for that we need to use that the scaffold, scaffold messenger dot off and context. So there is one method hide parent snack bar. So once we will call this method, so once we click on the delete this will hide the previously shown snack bar and then you can see the new one. Let's see. So by this we can just prevent that problem. So I delete this abc undo abc is fine. I delete this ghi ghi abc now undo so you can see abc is only coming we are not getting any conflict. So that is all for this video. If you have a further any doubt do comment in the comment section otherwise like share and subscribe. Thank you.