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

A Flutter plugin for retrieving a device's unique identifier across Android, iOS, Web, macOS, Linux, and Windows platforms.

example/lib/main.dart

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

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

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  var serial = "";
  @override
  void initState() {
    super.initState();
    getSerial();
  }

  void getSerial() async {
    serial = await UniqueIdentifier.serial ?? '';
    setState(() {});
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Running on: $serial\n'),
        ),
      ),
    );
  }
}
4
likes
140
points
132
downloads

Documentation

API reference

Publisher

verified publisherjinosh.site

Weekly Downloads

A Flutter plugin for retrieving a device's unique identifier across Android, iOS, Web, macOS, Linux, and Windows platforms.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on unique_identifier_3

Packages that implement unique_identifier_3