addstream_flutter library

AddStream Flutter SDK for displaying advertisements.

This library provides widgets and services for integrating AddStream ads into Flutter applications.

To use this library:

  1. Initialize the SDK in your main function
  2. Use AddStreamWidget to display ads

Example:

import 'package:addstream_flutter/addstream_flutter.dart';

void main() {
  AddStreamGlobal.initialize(
    AddStreamConfig(apiUrl: 'https://your-api-url.com'),
  );
  runApp(MyApp());
}

Classes

AddStreamAd
AddStreamConfig
Configuration for the AddStream SDK.
AddStreamGlobal
This class manages the global configuration for the AddStream SDK. You must call initialize before using any AddStream widgets.
AddStreamService
Service class for fetching and tracking ads from AddStream.
AddStreamVideoWidget
A widget that displays a VAST video advertisement.
AddStreamWidget
A widget that displays AddStream advertisements.
AddStreamWidgetState
State for AddStreamWidget.

Exceptions / Errors

AddStreamException
Custom exception for AddStream-specific errors.