blender_sdk

⚠️ We have implemented breaking changes since version 2.0.0, please see the "Usage" section for how to use this ⚠️

This is a Mobile Ad Library - Blender package provided by Webloyalty for implementation in Flutter applications of our partners

Getting Started

The Blender SDK works with an array of "banner objects" that are provided by the API. One of the properties of a banner object tells us of whether this specific banner is an inline banner (intended to be displayed within the contents of a screen) or a full-screen banner (intended to be displayed in a full-screen modal).

Installation

  1. Install the package
flutter pub add blender_sdk

Usage

⚠️ We have now a one-for-all widget that handles all our banners, that needs to be present in your build function in order to trigger our banners ⚠️

import 'dart:io' show Platform;
import 'package:blender_sdk/blender_sdk.dart';


  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: BlenderBannerWidget(
            hashId: Platform.isIOS ? "YOUR_HASH_ID_IOS" : "YOUR_HASH_ID_ANDROID",
            width: 200,
            height: 350
          )
        )
      );
  }

Parameters

parameter type Description required default
hashId string The hash ID of your campaign yes -
width double The inline banner's widget width size no 0
height double The inline banner's widget height size no 0
keywords string Keywords of your campaign no -
isLoggingEnabled bool Enable/disable the logging state to the console no false

Libraries

blender_sdk