delta_contacts 1.1.0 copy "delta_contacts: ^1.1.0" to clipboard
delta_contacts: ^1.1.0 copied to clipboard

A Flutter plugin for accessing device contacts.

example/lib/main.dart

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

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

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

  Future<void> _getContacts() async {
    final DeltaContacts deltaContactsPlugin = DeltaContacts();
    String? historyToken;

    /// Do not pass the [historyToken] if you want to get all contacts
    final response =
        await deltaContactsPlugin.getContacts(historyToken: historyToken);
    historyToken = response.historyToken ?? '';
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Delta Contacts'),
        ),
        body: Center(
          child: ElevatedButton(
            onPressed: _getContacts,
            child: const Text('Get Delta Contacts'),
          ),
        ),
      ),
    );
  }
}
1
likes
130
points
139
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for accessing device contacts.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on delta_contacts

Packages that implement delta_contacts