oaid_kit 0.1.0 copy "oaid_kit: ^0.1.0" to clipboard
oaid_kit: ^0.1.0 copied to clipboard

PlatformAndroid
outdated

Flutter plugin for Oaid.

example/lib/main.dart

import 'dart:convert';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:oaid_kit/oaid_kit.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Builder(
        builder: (BuildContext context) {
          return Scaffold(
            appBar: AppBar(
              title: const Text('Oaid Kit'),
            ),
            body: ListView(
              children: <Widget>[
                ListTile(
                  title: const Text('getOaid'),
                  onTap: () async {
                    final Supplier supplier = await Oaid.getOaid();
                    print(const JsonEncoder.withIndent('  ').convert(supplier));
                    await showCupertinoDialog<void>(
                      context: context,
                      builder: (BuildContext context) {
                        return CupertinoAlertDialog(
                          title: const Text('getOaid'),
                          content: Text(const JsonEncoder.withIndent('  ')
                              .convert(supplier)),
                        );
                      },
                    );
                  },
                ),
              ],
            ),
          );
        },
      ),
    );
  }
}
1
likes
140
points
19
downloads

Publisher

verified publisherrxreader.com

Weekly Downloads

Flutter plugin for Oaid.

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, json_annotation

More

Packages that depend on oaid_kit

Packages that implement oaid_kit