dmd 0.0.2
dmd: ^0.0.2 copied to clipboard
DRIVEMETADATA is a analytical flutter plugin
example/lib/main.dart
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:dmd/dmd.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
initPlatformState();
}
// Platform messages are asynchronous, so we initialize in an async method.
Future<void> initPlatformState() async {
try{
DriveMetaData.androidInit(1635,"4d17d90c78154c9a5569c073b67d8a5a22b2fabfc5c9415b6e7f709d68762054",3020);
DriveMetaData.bannerAd();
DriveMetaData.interstitialAd();
DriveMetaData.rewardAd();
DriveMetaData.androidDeviceToken("123456786566565656565");
DriveMetaData.sendTags("JSonData","update");
}
catch(e)
{
}
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: Text('Running on:'),
),
),
);
}
}