app_usage_tracker

Last updated:

0 purchases

app_usage_tracker Image
app_usage_tracker Images
Add to Cart

Description:

app usage tracker

App Usage Tracker #
The App Usage Tracker is a Dart class that provides a simple way to track how many days an app has been used and how many times it has been opened. It uses the shared_preferences package to store the app's usage information on the device.
Note: This plugin is still under development, anyone want to contribute on this project is most welcome. If you have any idea or suggestion, please feel free to contact me.
Features #

✅ Null-safety enable
✅ Easy to use
✅ Highly customizable
✅ Supports for all platforms
✅ Can check in days format and can stop reseting if want

Getting Started #
To use the App Usage Tracker, simply import the AppUsageTracker package:
Run this on your project terminal:
flutter pub add app_usage_tracker
copied to clipboard
or manually configure pubspec.yml fi
dependencies:
flutter:
sdk: flutter
app_usage_tracker: ^0.0.1
copied to clipboard
Usage #
To check if the app has been used for at least 15 days and opened at least 10 times, use the isAppUsedEnough method of the AppUsageTracker class. The method returns a boolean value indicating whether the app has been used enough:
First Imported Package:
import 'package:app_usage_tracker/app_usage_tracker.dart';
copied to clipboard
Then:
bool isUsedEnough = await AppUsageTracker.isAppUsedEnough(
minDayUsed: 15, // here you can user your own minimum day used
minLaunches: 10, // here you can use your own minimum lunches
resetTracker: true// reset the tracker if the app has been used for at least minDays = 15 days and opened at least minLunches = 10 times. By default the tracker is reset.
);
if (isUsedEnough) {
// The app has been used enough
} else {
// The app has not been used enough
}
copied to clipboard
The AppUsageTracker class, which has a static method isAppUsedEnough that returns a boolean indicating whether the app has been used enough. It uses the shared_preferences package to store the app's usage information on the device. When the isAppUsedEnough method is called, it checks the stored usage information to determine if the app has been used for at least minDayUsed days and opened at least minLaunches times. If the app has not been used enough, the method returns false. If the app has been used enough, the method resets the usage information and returns true.
Screenshot (GIF) #



App Usages Tracker (FALSE)
App Usages Tracker (TRUE)









Additional information #

App Usage Tracker (pub.dev)
App Usage Tracker (GitHub)

Project Maintainer ❤️






Md. Al-Amin


✨VALUABLE CONTRIBUTORS✨





Happy Coding 👨‍💻
License #
This project is licensed under the MIT License - see the LICENSE file for details.

License:

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

Files In This Product:

Customer Reviews

There are no reviews.