smart_permission 0.0.1
smart_permission: ^0.0.1 copied to clipboard
Opinionated wrapper around permission_handler: one-line runtime permission requests with adaptive dialogs, per-permission titles/descriptions, theming, analytics, and batch support (Android & iOS).
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add smart_permissionWith Flutter:
$ flutter pub add smart_permissionThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
smart_permission: ^0.0.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:smart_permission/smart_permission.dart';