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.
This commit is contained in:
MohammadTaha Basiri 2024-04-01 17:15:14 +03:30
parent 3aa39c82cd
commit 08c6d514f8
1 changed files with 3 additions and 0 deletions

View File

@ -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<StudioDetailsState>();
await state.getStudioDetails(