in screen2 there is a counter variable which will be “post number” that will display next post or prevous post
For example, when x is pressed it will go to screen2 , now i want to lunch the variable “post number” to bring the content of post number 5 and display it in the textbox , but the content of post number 5 for x is different that the content of post number 5 for y and z
You can make it with TinyDB. Use tags like x, y, z to store a list of all rows.
When a cell is tapped, start the second screen with start value set to the column, for example, x. When the second screen is opened, from the start value (which is x), get the list from the tag x from TinyDB and get the rows from the list.