odm 1.0.0 copy "odm: ^1.0.0" to clipboard
odm: ^1.0.0 copied to clipboard

PlatformiOS

On-Device Measurement for iOS apps

example/lib/main.dart

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'),
        ),
      ),
    );


  }
}
1
likes
150
points
9
downloads

Publisher

unverified uploader

Weekly Downloads

On-Device Measurement for iOS apps

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on odm

Packages that implement odm