aqua_ad_widget 1.1.0 copy "aqua_ad_widget: ^1.1.0" to clipboard
aqua_ad_widget: ^1.1.0 copied to clipboard

Flutter widget for Revive Adserver integration with support for image and video ads, auto-refresh, and click tracking.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:aqua_ad_widget/aqua_ad_widget.dart';

void main() {
  // Configurazioni globali della libreria
  AquaConfig.setImageRefreshSeconds(15); // Refresh immagini ogni 15 secondi
  AquaConfig.setDefaultLocation('https://staging.fantasanremo.com'); // Location per tracking
  
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Aqua Platform Example',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: const HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Aqua Platform Test')),
      body: const SingleChildScrollView(
        padding: EdgeInsets.all(16),
        child: Column(
          children: [
            Text('Zona 11346', style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold)),
            SizedBox(height: 8),
            AquaAdWidget(zoneId: 11346),
            
            SizedBox(height: 32),
            
            Text('Zona 11562', style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold)),
            SizedBox(height: 8),
            AquaAdWidget(zoneId: 11562),
          ],
        ),
      ),
    );
  }
}
1
likes
0
points
613
downloads

Publisher

verified publisherappfactory.it

Weekly Downloads

Flutter widget for Revive Adserver integration with support for image and video ads, auto-refresh, and click tracking.

Repository (GitHub)
View/report issues

Topics

#ads #advertising #revive #adserver #banner

License

unknown (license)

Dependencies

flutter, http, url_launcher

More

Packages that depend on aqua_ad_widget