v0.1.5
app_install_date
이 플러그인은 애플리케이션의 설치 날짜를 확인하는 데 도움을 줍니다
24좋아요 3.1천30일 다운로드140Pub 점수
AndroidiOSmacOS
앱 설치 날짜를 얻는 데 도움이 되는 플러터 플러그인
{"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