blender_sdk 2.0.0 copy "blender_sdk: ^2.0.0" to clipboard
blender_sdk: ^2.0.0 copied to clipboard

Blender sdk for flutter to help integrating WLS banners in any flutter app.

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
2
likes
0
points
64
downloads

Publisher

unverified uploader

Weekly Downloads

Blender sdk for flutter to help integrating WLS banners in any flutter app.

Homepage

License

unknown (license)

Dependencies

cupertino_icons, device_info, flutter, http, package_info_plus, url_launcher, webview_flutter

More

Packages that depend on blender_sdk