### Pick Phone Contact Source: https://github.com/tunaiku/fluttercontactpicker/blob/master/README.md Use this snippet to grab a phone contact using the OS's native contact picker. Ensure the fluttercontactpicker package is imported. ```dart final PhoneContact contact = await FlutterContactPicker.pickPhoneContact(); ``` -------------------------------- ### Pick Full Contact (Android) Source: https://github.com/tunaiku/fluttercontactpicker/blob/master/README.md This snippet allows picking a full contact on Android devices. Note that iOS does not support this functionality directly through the ContactPicker API. ```dart final FullContact contact = await FlutterContactPicker.pickFullContact(); ``` -------------------------------- ### Register Flutter Service Worker Source: https://github.com/tunaiku/fluttercontactpicker/blob/master/example/web/index.html Register the Flutter service worker when the 'flutter-first-frame' event is detected. This ensures the service worker is ready before the application fully initializes. ```javascript if ('serviceWorker' in navigator) { window.addEventListener('flutter-first-frame', function () { navigator.serviceWorker.register('flutter_service_worker.js'); }); } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.