Skip to content

Commit 7fa9aae

Browse files
committed
feat(ads): add placeholder ad provider type
- Introduce a new AdProviderType.placeholder for web demo environments - Maintain UI consistency without relying on native SDKs
1 parent 0867a37 commit 7fa9aae

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/ads/models/native_ad.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ import 'package:flutter/foundation.dart';
1010
enum AdProviderType {
1111
/// Google AdMob provider.
1212
admob,
13-
// Add other providers here in the future, e.g., meta, appLovin
13+
14+
/// A placeholder provider for platforms where native ads are not supported.
15+
///
16+
/// This is primarily used for the web demo environment to maintain UI
17+
/// consistency without relying on native SDKs.
18+
placeholder,
1419
}
1520

1621
/// {@template native_ad}

0 commit comments

Comments
 (0)