v0.1.5
app_install_date
此插件可帮助您获取应用程序的安装日期
24喜欢 3100近 30 天下载140Pub 分数
AndroidiOSmacOS
一个帮助获取应用安装日期的 Flutter 插件
{"sdk":"flutter"}^2.0.13>=2.0.1 <6.0.0{"sdk":"flutter"}>=1.0.1 <6.0.0以下为英文项目原文快照,最新内容请访问 GitHub。
A flutter plugin that helps to get date of the app installation
[!NOTE] This plugin
most likelyworks but is not actively maintained. If you face any issues, please create a pull request
How to use:
late String installDate;
// Platform messages may fail, so we use a try/catch
try {
final DateTime date = await AppInstallDate().installDate;
installDate = date.toString();
} catch (e, st) {
installDate = 'Failed to load install date';
}
On android it is using the PackageManager to get install date from the package info
On these platforms it is using application document directory's creation date. This method is also used in native development