screen_time_kit 0.1.0 copy "screen_time_kit: ^0.1.0" to clipboard
screen_time_kit: ^0.1.0 copied to clipboard

One Dart API for screen time, app usage, and app limits — Android and iOS, unified. Wraps Android UsageStatsManager and iOS FamilyControls / DeviceActivity / ManagedSettings behind a single, type-safe [...]

0.1.0 #

Initial release. One Dart API for screen time, app usage, and app limits across Android and iOS.

Features #

  • Permissions — unified PermissionStatus over Android usage-access (AppOpsManager) and iOS FamilyControls authorization.
  • App usagegetAppUsage() via Android UsageStatsManager (queryAndAggregateUsageStats). iOS reports PlatformNotSupportedException until a DeviceActivityReportExtension is added (documented).
  • App limitssetAppLimit / removeAppLimit / getActiveLimits / clearAllLimits. Soft (detect-and-notify) on Android via a usage poller + onLimitReached stream; natively enforced on iOS via ManagedSettings.
  • Summaries — pure-Dart getDailySummaries / getWeeklySummaries aggregation on top of raw usage.
  • Focus modestartFocusMode / stopFocusMode convenience wrapper with automatic timer-based revert.
  • Typed exception hierarchy (ScreenTimeException and subclasses) mapping every native error code.
  • Example app demonstrating every feature and integration-test stubs for real-device flows.
0
likes
140
points
15
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

One Dart API for screen time, app usage, and app limits — Android and iOS, unified. Wraps Android UsageStatsManager and iOS FamilyControls / DeviceActivity / ManagedSettings behind a single, type-safe interface.

Repository (GitHub)
View/report issues

Topics

#screen-time #usage-stats #parental-control #digital-wellbeing #family-controls

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on screen_time_kit

Packages that implement screen_time_kit