TinyDB: Unable to clear ListView

I’m currently working on an ordering app where whenever i click on a button, it stores the text on the button to tinyDB and inserts it into listview. However, the data will not reset, so existing data is still there and then another same data is inserted, so every time it always adds the same data to list. Does anyone know how to fix the problem?

wheres you button clear list

Hi. It’s not clear what it is you need to ‘reset’. Do you mean the ListView must not have duplicates? TinyDb?

…also, you seem to have ListViews on two screens, displaying the same data? Is that intentional?

Button7 must not “open another screen” with Screen1 - that literally creates another Screen1 so everytime that button is tapped, another Screen1 is created until the App crashes with a memory violation.

Do this instead:
GoBackToScreen1

…which will automatically take the App User back to the original Screen1.