startapp 0.1.0+1 copy "startapp: ^0.1.0+1" to clipboard
startapp: ^0.1.0+1 copied to clipboard

outdated

Flutter plugin for StartApp SDK - Currently only support Android platform

Flutter - StartApp SDK Plugin #

Flutter plugin for StartApp SDK Currently, this plugin only support Android platform

How to use the plugin #

  • Add StartApp ID of project to AndroidManifest.xml as meta-data:
<meta-data android:name="vn.momo.plugin.startapp.STARTAPP_ID" android:value="\ {your-startapp-id}" />
  • Banner as widget
import 'package:flutter/material.dart';
import 'package:startapp/startapp.dart';

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

class MyApp extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => MyAppState();
}

class MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: "StartApp Example",
        home: Scaffold(
            appBar: AppBar(title: const Text('StartApp Example')),
            body: Center(
                child: Column(
                  children: <Widget>[
                    Text('Banner sample'),

                    // StartApp AdBanner widget
                    AdBanner(),
                  ],
                )
            )
        )
    );
  }
}
  • Load interstitial ad
  static showInterstitialAd() async {
    if (!App.isInDebugMode) {
      await platform.invokeMethod('showAd');
    }
  }
29
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Flutter plugin for StartApp SDK - Currently only support Android platform

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on startapp