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

DriveMeta Data

example/lib/main.dart

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

import 'package:flutter/services.dart';
import 'package:drivemeta_flutter_plugin/drivemeta_flutter_plugin.dart';

void main() {
  runApp(const MyApp());
}

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

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

class _MyAppState extends State<MyApp> {
 static const platform = const MethodChannel("dmd_flutter_plugin");
  @override
  void initState() {
    super.initState();
    initPlatformState();
  }

  // Platform messages are asynchronous, so we initialize in an async method.
  void  initPlatformState() async {
   try{
   DriveMetaData.androidInit(1635,"4d17d90c78154c9a5569c073b67d8a5a22b2fabfc5c9415b6e7f709d68762054",3020);
   DriveMetaData.bannerAd();
   DriveMetaData.interstitialAd();
   DriveMetaData.rewardAd();
   DriveMetaData.androidDeviceToken("123456786566565656565");
   
   
   }
   catch(e)
   {

   }
   
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('DriveMetaData example app'),
        ),
        body: Center(
          child: Text('DriveMeta Data Flutter Plugin '),
        ),
      ),
    );
  }
}