I am trying to create a list of items with a hidden button at the bottom. By default the button is not visible on the screen.
If a user scrolls to the bottom of the list the button should appear like it is the last item of the list.
I created illustrations to better visualize the desired behaviour:
Sketch 1: List with a few items
Sketch 2: List with a lot of items
I already tried the solution for a similar problem (https://stackoverflow.com/a/69196765/11720296) and added extra offset but unfortunately it didn't work.
Does somebody have an idea how to create this behaviour?



