Adding favourite in detail screen

Is it possible to add favourite in the detailed screen?

I have an image and a table in it.

You can use a choice component to mimic the all/favorites layout. Write that choice to a user-specific column and show/hide two inline lists accordingly.

I simply added a button to the detail screen and create a sheet as favourite to create a row to show the favourite added.

But I need to delete it the above favourited things to delete.