adrop_ads_flutter 0.5.1 copy "adrop_ads_flutter: ^0.5.1" to clipboard
adrop_ads_flutter: ^0.5.1 copied to clipboard

AdropAds flutter plugin that shows ads using native platform views

example/lib/main.dart

import 'package:adrop_ads_flutter/adrop_ads_flutter.dart';
import 'package:adrop_ads_flutter_example/views/banner_example.dart';
import 'package:adrop_ads_flutter_example/views/home.dart';
import 'package:adrop_ads_flutter_example/views/interstitial_example.dart';
import 'package:adrop_ads_flutter_example/views/popup_example.dart';
import 'package:adrop_ads_flutter_example/views/property_example.dart';
import 'package:adrop_ads_flutter_example/views/rewarded_example.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
  Adrop.initialize(false);
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      initialRoute: '/home',
      navigatorObservers: [AdropNavigatorObserver()],
      routes: {
        '/home': (context) => const Home(),
        '/bannerExample': (context) => const BannerExample(),
        '/interstitialExample': (_) => const InterstitialExample(),
        '/rewardedExample': (_) => const RewardedExample(),
        '/popupExample': (_) => const PopupExample(),
        '/propertyExample': (_) => const PropertyExample(),
        // Add more routes as needed
      },
    );
  }
}
1
likes
0
points
218
downloads

Publisher

verified publisheradrop.io

Weekly Downloads

AdropAds flutter plugin that shows ads using native platform views

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, mocktail, plugin_platform_interface

More

Packages that depend on adrop_ads_flutter