odm 0.0.6
odm: ^0.0.6 copied to clipboard
On-Device Measurement for iOS apps
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:odm/odm.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
final _odmPlugin = Odm();
@override
Widget build(BuildContext context) {
if (Platform.isIOS) {
_odmPlugin.initiateWithEmail("[email protected]");
}
//Typical placeholder
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: const Center(
child: Text('Running'),
),
),
);
}
}