sebads 0.1.4
sebads: ^0.1.4 copied to clipboard
Lightweight Flutter ads SDK for GraphQL-backed ad delivery and tracking.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:sebads/sebads.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await SebAds.init(
appId: 'your-app-id',
endpoint: 'https://your-graphql-endpoint',
);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: AdView(
format: AdFormat.square,
width: 300,
height: 300,
),
),
),
);
}
}