addstream_flutter 1.0.2 copy "addstream_flutter: ^1.0.2" to clipboard
addstream_flutter: ^1.0.2 copied to clipboard

A Flutter package for displaying AddStream ads in your mobile applications.

example/lib/main.dart

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

void main() {
  // Initialize AddStream
  AddStreamGlobal.initialize(
    AddStreamConfig(
      apiKey: 'your-api-key',
      apiUrl: 'https://your-api-url.com',
    ),
  );

  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'AddStream Test',
      home: Scaffold(
        appBar: AppBar(title: const Text('AddStream Example')),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              const Text('Testing AddStream Widget:'),
              const SizedBox(height: 20),
              AddStreamWidget(
                zoneId: 'zone_123',
                // Your test zone
                width: 320,
                height: 50,
                onAdLoaded: () => debugPrint('✅ Ad loaded!'),
                onAdFailed: (error) => debugPrint('❌ Error: $error'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
0
points
421
downloads

Publisher

verified publisheraddstream.net

Weekly Downloads

A Flutter package for displaying AddStream ads in your mobile applications.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

crypto, flutter, html, http, url_launcher

More

Packages that depend on addstream_flutter