Skip to content

Commit 53f0231

Browse files
committed
feat(app_configuration): exclude demo ad platform from dashboard selection
- Modified the ad platform configuration form to filter out the demo ad platform - Ensures that only non-demo ad platforms are displayed in the dashboard selection
1 parent 1c53eb1 commit 53f0231

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

lib/app_configuration/widgets/ad_platform_config_form.dart

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,16 @@ class _AdPlatformConfigFormState extends State<AdPlatformConfigForm> {
245245
),
246246
),
247247
segments: AdPlatformType.values
248+
.where(
249+
(type) =>
250+
type !=
251+
AdPlatformType
252+
.demo, // Ignore demo ad platform for dashboard
253+
)
248254
.map(
249-
(platform) => ButtonSegment<AdPlatformType>(
250-
value: platform,
251-
label: Text(platform.l10n(context)),
255+
(type) => ButtonSegment<AdPlatformType>(
256+
value: type,
257+
label: Text(type.l10n(context)),
252258
),
253259
)
254260
.toList(),

0 commit comments

Comments
 (0)