FLUTTER ECOSYSTEM

Maksimka101/app_install_date

アプリのインストール日を取得するのに役立つFlutterプラグイン

app_install_date のプロジェクト画像
Stars
5
Forks
7
最終プッシュ(UTC)
2024/12/23
プロジェクト状態
公開中
Zemlianikin Max GitHub avatar
GITHUB User

Zemlianikin Max ↗

Flutter/Full-Stack developer
言語C++CMakeDartRubySwiftKotlinHTMLCObjective-C

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 5 件

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

A flutter plugin that helps to get date of the app installation

[!NOTE] This plugin most likely works 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';
}

How it works

Android

On android it is using the PackageManager to get install date from the package info

IOS and MacOS

On these platforms it is using application document directory's creation date. This method is also used in native development