adcio_core 1.0.1 copy "adcio_core: ^1.0.1" to clipboard
adcio_core: ^1.0.1 copied to clipboard

discontinued

Provides values commonly used by the ADCIO SDK during side-effect-free behavior.

example/lib/main.dart

// ignore: depend_on_referenced_packages
import 'package:adcio_core/adcio_core.dart';

import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: SafeArea(
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              Wrap(
                children: [
                  TextButton(
                    onPressed: () async {
                      /// You can get the device id through the FetchDeviceId() object.
                      final String deviceId = await DeviceIdentifier().loadId();
                      Fluttertoast.showToast(msg: deviceId);
                    },
                    style: TextButton.styleFrom(
                      foregroundColor: Colors.amber,
                    ),
                    child: const Text("get Device Id"),
                  ),
                  TextButton(
                    onPressed: () {
                      /// You can get the session id through the SessionClient() object.
                      final String sessionId = SessionIdentifier().loadId();
                      Fluttertoast.showToast(msg: sessionId);
                    },
                    style: TextButton.styleFrom(
                      foregroundColor: Colors.indigo,
                    ),
                    child: const Text("get Session Id"),
                  ),
                ],
              ),
              const Expanded(
                child: Row(
                  mainAxisSize: MainAxisSize.max,
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [
                    Text('adcio_core plugin example'),
                  ],
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
3
likes
130
points
232
downloads

Publisher

verified publishercorca.ai

Weekly Downloads

Provides values commonly used by the ADCIO SDK during side-effect-free behavior.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

device_info_plus, flutter, uuid

More

Packages that depend on adcio_core