contact_permission

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

contact permission

contact_permission #
A plugin for Flutter that requests and verifies contact permissions.

Why this package?
Integrating Flutter Frameworks into the Android and iOS "add-to-app"
scenario can pose its own set of challenges. In one instance, when
attempting to integrate the permission_handler, we mistakenly added
GCC_PREPROCESSOR_DEFINITIONS flags to the root project instead of
within the module package. After numerous hours of researching the
issue, it became evident that this approach was not effective.
As a result, we had to relocate the flags to the Flutter Module
Podfile, which should not have been committed in the first place.
However, even after this adjustment, we discovered that the
Android permission was still not functioning correctly
on many devices.
This predicament led to the development of this package.

Let's get started #

Go to pubspec.yaml
add a contact_permission and replace [version] with the latest version:

dependencies:
flutter:
sdk: flutter
contact_permission: ^[version]
copied to clipboard

click the packages get button or flutter pub get

Import the package #
import 'package:contact_permission/contact_permission.dart';
copied to clipboard
##Check if permission is granted or not
...

onTap: () async {
if (await ContactPermission.isPermissionGranted) {
showSnackBar(
_scaffoldKey,
title: "Contact Permission Granted",
color: Colors.green,
);
} else {
showSnackBar(
_scaffoldKey,
title: "Contact Permission Not Granted",
);
}
},

...

copied to clipboard
##Request permission
...

onTap: () async {
if (await ContactPermission.requestPermission) {
showSnackBar(
_scaffoldKey,
title: "Contact Permission Granted",
color: Colors.green,
);
} else {
showSnackBar(
_scaffoldKey,
title: "Contact Permission Not Granted",
);
}
},
copied to clipboard
Contributing #
There are couple of ways in which you can contribute.

Propose any feature, enhancement
Report a bug
Fix a bug
Participate in a discussion and help in decision making
Write and improve some documentation. Documentation is super critical and its importance
cannot be overstated!
Send in a Pull Request :-)



Thanks to all contributors of this package

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.