flutter_applovin 0.0.1 flutter_applovin: ^0.0.1 copied to clipboard
A new Flutter applovin plugin.
import 'package:flutter/material.dart';
import 'package:flutter_applovin/flutter_applovin.dart';
void main() => runApp(new MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => new _MyAppState();
}
class _MyAppState extends State<MyApp> {
String _platformVersion = 'Unknown';
@override
initState() {
super.initState();
FlutterApplovin.loadInterstitial;
}
@override
Widget build(BuildContext context) {
return new MaterialApp(
home: new Scaffold(
appBar: new AppBar(
title: new Text('Plugin example app'),
),
body: new Center(
child: new RaisedButton(
onPressed: () {
FlutterApplovin.showInterstitial;
},
child: new Text("showAd"),
),
),
),
);
}
}