Skip to content

Dropsource/flutter_native_contact_dialog_example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

  • No permissions are required for this plugin.
  • Requires iOS 9 or above

Methods

class NativeContactDialog {

  static Future<String> addContact(Contact contact)

}

Example - Adding a contact

// import package
import 'package:native_contact_dialog/native_contact_dialog.dart';

// create a contact
final contactToAdd = Contact(...args...);

// open the native add contact dialog
NativeContactDialog.addContact(contactToAdd).then((result) {
    // NOTE: The user could cancel the dialog, but not add
    // them to their addressbook. Whether or not the user decides
    // to add [contactToAdd] to their addressbook, you will end up
    // here.

    print('add contact dialog closed.')
}).catchError((error) {
    // FlutterError, most likely unsupported operating system.
    print('Error adding contact!');
});

About

The example app for the flutter native_contact_dialog plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 59.1%
  • Ruby 30.3%
  • Swift 5.4%
  • Kotlin 4.7%
  • Objective-C 0.5%