"Scroll to top" button

Hello everyone, I just started building the app recently. I have a problem with the app. I looked at the forum topic with the extension and tried to do it as an example. But my button does not work, please help me how can I solve this problem?

I took examples from here How to go from bottom to top in one click?