I'm doing an e-commerce-like application. When the user likes a product, I save it with sqflite on another page called my favorites.But the problem is that the more the user presses the button, the more it saves.

GestureDetector(
onTap: () async{
Client rnd = Client(lastName: degerVer(widget.numUrunOzel));
await DBProvider.db.newClient(rnd);
setState(() {});
},
child: Icon(Icons.favorite))
