Skip to content

Commit b2908cd

Browse files
committed
fix(ads): assign template type based on image style in NoOpAdProvider
- Add logic to determine NativeAdTemplateType based on HeadlineImageStyle - Use medium template type for largeThumbnail image style - Use small template type for other image styles
1 parent 3c159f0 commit b2908cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/ads/no_op_ad_provider.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ class NoOpAdProvider implements AdProvider {
5252
id: _uuid.v4(),
5353
provider: AdProviderType.placeholder,
5454
adObject: Object(), // Dummy object
55+
templateType: switch (imageStyle) {
56+
HeadlineImageStyle.largeThumbnail => NativeAdTemplateType.medium,
57+
_ => NativeAdTemplateType.small,
58+
},
5559
);
5660
}
5761
}

0 commit comments

Comments
 (0)