ads_plugin_flutter 0.0.5
ads_plugin_flutter: ^0.0.5 copied to clipboard
BSD Ads plugin.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:ads_plugin_flutter/ads_plugin_flutter.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
void backfillFunction() {
print("Backfill function executed");
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Plugin example app')),
body: Center(
child: BlueseedAd(
"https://cdn.blueseed.tv/bu6-tech/2025/03/test_adx_voh.html",
backfillFunction, // Pass the backfill function as the second parameter
),
),
),
);
}
}