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

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 = "YOUR_PLACEMENT_ID";

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: ListView(
          children: <Widget>[
            Container(
              height: 150.0,
              color: Colors.green,
              margin: EdgeInsets.only(bottom: 20.0),
            ),
            Container(
              height: 150.0,
              color: Colors.green,
              margin: EdgeInsets.only(bottom: 20.0),
            ),
            Container(
              height: 150.0,
              color: Colors.green,
              margin: EdgeInsets.only(bottom: 20.0),
            ),
            FBNativeBannerAd(
              placementID: placementID,
              padding: EdgeInsets.all(8.0),
              margin: EdgeInsets.only(bottom: 20.0),
              style: AdStyle(
                titleColor: Colors.white,
                socialTextColor: Colors.blueGrey,
                backgroundColor: Colors.black,
              ),
              onCreate: (NativeAdController controller) {
                // controller.loadAd();
              },
            ),
            Container(
              height: 150.0,
              color: Colors.green,
              margin: EdgeInsets.only(bottom: 20.0),
            ),
            Container(
              height: 150.0,
              color: Colors.green,
              margin: EdgeInsets.only(bottom: 20.0),
            ),
            Container(
              height: 150.0,
              color: Colors.green,
              margin: EdgeInsets.only(bottom: 20.0),
            ),
            Container(
              height: 150.0,
              color: Colors.green,
              margin: EdgeInsets.only(bottom: 20.0),
            ),
          ],
        ),
      ),
    );
  }
}
5
likes
15
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