flutter_fbaudience_network 0.0.1 copy "flutter_fbaudience_network: ^0.0.1" to clipboard
flutter_fbaudience_network: ^0.0.1 copied to clipboard

outdated

A plugin for retrieving FB Audience Network

example/lib/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {

  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  static const placementID = "901187426651461_1476779722425559";

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Container(
          height: 100.0,
          child: FBNativeBannerAd(
            placementID: "YOUR_PLACEMENT_ID",
            onCreate: (NativeAdController controller) {
              controller.setTitleColor("#ffffff");
              controller.setSocialTextColor("#ffffff");
              controller.setBackgroundColor("#232325");
              controller.setContentPadding(top: 10, left: 10, right: 10);
            },
          ),
        ),
      ),
    );
  }
}
5
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A plugin for retrieving FB Audience Network

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_fbaudience_network