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:
parent
3aa39c82cd
commit
08c6d514f8
|
|
@ -84,6 +84,9 @@ class MultitypeOverview extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return DidvanCard(
|
return DidvanCard(
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
|
if (item.type == 'infography') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (item.type == 'podcast') {
|
if (item.type == 'podcast') {
|
||||||
final state = context.read<StudioDetailsState>();
|
final state = context.read<StudioDetailsState>();
|
||||||
await state.getStudioDetails(
|
await state.getStudioDetails(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue