From 08c6d514f862a4d1c93e31ab543cfefa096380d2 Mon Sep 17 00:00:00 2001 From: MohammadTaha Basiri Date: Mon, 1 Apr 2024 17:15:14 +0330 Subject: [PATCH] Update MultitypeOverview to return early for infographies The changes include adding a return statement for infographies in the onTap callback of the DidvanCard widget in the MultitypeOverview class. This will prevent the code from executing further when the item type is infography. --- lib/views/widgets/overview/multitype.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/views/widgets/overview/multitype.dart b/lib/views/widgets/overview/multitype.dart index 3f319fc..366eb49 100644 --- a/lib/views/widgets/overview/multitype.dart +++ b/lib/views/widgets/overview/multitype.dart @@ -84,6 +84,9 @@ class MultitypeOverview extends StatelessWidget { Widget build(BuildContext context) { return DidvanCard( onTap: () async { + if (item.type == 'infography') { + return; + } if (item.type == 'podcast') { final state = context.read(); await state.getStudioDetails(