smart_permission 0.0.3 copy "smart_permission: ^0.0.3" to clipboard
smart_permission: ^0.0.3 copied to clipboard

Flutter runtime permissions made easy: one-line requests, adaptive dialogs, and full flows on Android & iOS.

0.0.3 #

Platform support and example updates.

  • Platforms: Declared support for Android, iOS, Web, and Windows
  • Core: Added robust try/catch + debug logs around permission flows
  • Core: Fallback dialog if opening app settings is unsupported/fails (web/windows)
  • Example: Added "Location (web/windows)" button to test browser/system flows
  • Example: Scaffolded Windows runner; removed macOS from declared platforms
  • Tooling: Project formatted and analyzed via FVM

0.0.2 #

Improvements and maintenance.

  • README: Added full‑width hero image and small copy refinements
  • Pubspec: Shortened description to 60–180 chars for SEO/snippet display
  • Lints: Fixed dangling library doc by adding library smart_permission;
  • Lints: Addressed use_build_context_synchronously with context.mounted checks
  • API: Replaced deprecated Permission.calendar with calendarWriteOnly and calendarFullAccess
  • Example: Added curly braces for single‑line if statements to satisfy lints

0.0.1 #

Initial release.

  • Core: Simple permission API wrapping permission_handler
    • Single: SmartPermission.request(context, permission: ...)
    • Batch: SmartPermission.requestMultiple(context, permissions: [...])
  • UI: Adaptive dialogs (Material/Cupertino) with configurable style
  • Config: Global theming (light/dark, primaryColor)
  • Content: Built-in per-permission titles and descriptions with override providers
  • Customization: customDialogBuilder hook
  • Analytics: Hook interface + default in-memory tracker
  • Re-exports: Permission types so apps only import this package
  • Example app: Android/iOS demo with theme toggle, style selector, custom builder demo
  • Platform refs: Example AndroidManifest.xml, iOS Info.plist and Podfile macros
  • Tooling: README, GitHub CI (format, analyze, test), starter tests
4
likes
160
points
50
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter runtime permissions made easy: one-line requests, adaptive dialogs, and full flows on Android & iOS.

Repository (GitHub)
View/report issues

Topics

#permission #runtime-permissions #permission-handler #adaptive-dialog #app-settings

Documentation

API reference

License

MIT (license)

Dependencies

flutter, permission_handler

More

Packages that depend on smart_permission