Skip to content

Commit a080791

Browse files
committed
refactor(ads): update AdProvider to use AdThemeStyle instead of ThemeData
- Replace import of Material package with AdThemeStyle - Update loadNativeAd method to use AdThemeStyle parameter
1 parent 86bea33 commit a080791

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ads/ad_provider.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:core/core.dart';
2-
import 'package:flutter/material.dart';
2+
import 'package:flutter_news_app_mobile_client_full_source_code/ads/models/ad_theme_style.dart';
33
import 'package:flutter_news_app_mobile_client_full_source_code/ads/models/native_ad.dart'
44
as app_native_ad;
55

@@ -29,7 +29,7 @@ abstract class AdProvider {
2929
/// that best matches the visual density of the surrounding content.
3030
Future<app_native_ad.NativeAd?> loadNativeAd({
3131
required HeadlineImageStyle imageStyle,
32-
required ThemeData theme,
32+
required AdThemeStyle adThemeStyle,
3333
});
3434

3535
// Future methods for other ad types (e.g., interstitial, banner)

0 commit comments

Comments
 (0)