crecexdiez_advertising 0.4.1 crecexdiez_advertising: ^0.4.1 copied to clipboard
A CreceXDiez Advertising Platform Flutter plugin. This package allows you to automatically display ads generated through the CrecexDiez ads platform in your flutter application.
import 'package:crecexdiez_advertising/crecexdiez_advertising.dart';
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('CreceXDiez Advertising example app'),
),
body: Center(
child: Crecex10Advertising(
id: 12,
height: 100,
width: 320,
borderRadius: 10,
adsIntervals: Duration(seconds: 10),
showCloseButton: true,
),
),
),
);
}
}