Official Flutter SDK for FlixeloAd mobile ad network.
- 🎯 Banner Ads - Display banner ads in standard sizes (320x50, 300x250, 728x90)
- 📱 Interstitial Ads - Show full-screen ads between content
- 🎨 Native Ads - Customizable native ads that match your app design
- 🎁 Rewarded Ads - Reward users for watching video ads
Add this to your package's pubspec.yaml file:
dependencies:
flixeload_sdk:
path: ../flixeload_sdk # Or from pub.dev once publishedThen run:
flutter pub getIn your main.dart, initialize FlixeloAd before running your app:
import 'package:flixeload_sdk/flixeload_sdk.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await FlixeloAd.instance.initialize(
appId: 'com.example.myapp',
apiKey: 'your_api_key_here',
baseUrl: 'https://flixeload.com', // Your backend URL
testMode: true, // Set to false in production
);
runApp(MyApp());
}import 'package:flixeload_sdk/flixeload_sdk.dart';
BannerAdWidget(
size: BannerAdSize.standard, // 320x50
onAdLoaded: (event) {
if (event.isSuccess) {
print('Banner ad loaded');
} else {
print('Banner ad failed: ${event.error}');
}
},
onAdClicked: () {
print('Banner ad clicked');
},
)final interstitialAd = InterstitialAd(
onAdLoaded: (event) {
if (event.isSuccess) {
print('Interstitial ad loaded');
}
},
onAdClosed: () {
print('Interstitial ad closed');
},
);
// Load the ad
await interstitialAd.load();
// Show when ready
if (interstitialAd.isLoaded) {
await interstitialAd.show(context);
}NativeAdWidget(
style: NativeAdStyle(
elevation: 2,
borderRadius: BorderRadius.circular(12),
ctaBackgroundColor: Colors.blue,
),
onAdLoaded: (event) {
print('Native ad loaded');
},
)final rewardedAd = RewardedAd(
onAdLoaded: (event) {
if (event.isSuccess) {
print('Rewarded ad loaded');
}
},
onUserRewarded: () {
print('User earned reward!');
// Give reward to user
},
onAdClosed: () {
print('Rewarded ad closed');
},
);
// Load the ad
await rewardedAd.load();
// Show when ready
if (rewardedAd.isLoaded) {
await rewardedAd.show(context);
}BannerAdSize.standard // 320x50
BannerAdSize.mediumRectangle // 300x250
BannerAdSize.leaderboard // 728x90// Set user consent for personalized ads
FlixeloAd.instance.setUserConsent(true);// Set user age for COPPA compliance
FlixeloAd.instance.setUserAge(age);You can pass targeting parameters to customize ad delivery:
BannerAdWidget(
size: BannerAdSize.standard,
targeting: {
'category': 'sports',
'keywords': ['football', 'basketball'],
},
)Enable test mode during development:
await FlixeloAd.instance.initialize(
appId: 'com.example.myapp',
apiKey: 'your_api_key_here',
testMode: true, // Test mode enabled
);For support and documentation, visit flixeload.com
Copyright © 2026 FlixeloAd. All rights reserved.