odm 1.0.0
odm: ^1.0.0 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> {
@override
Widget build(BuildContext context) {
// Only iOS works. Executing this in Android will not work.
Odm().initiateWithEmail("[email protected]");
// Typical Placeholder
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: const Center(
child: Text('Running'),
),
),
);
}
}