FLUTTER ECOSYSTEM

Maksimka101/app_install_date

Um plug-in do Flutter que ajuda a obter a data de instalação do aplicativo

Capa do projeto app_install_date
Stars
5
Forks
7
Último push (UTC)
23 de dez. de 2024
Status do projeto
Ativo
Zemlianikin Max GitHub avatar
GITHUB User

Zemlianikin Max ↗

Flutter/Full-Stack developer
LinguagensC++CMakeDartRubySwiftKotlinHTMLCObjective-C

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 5 itens
  • flutter{"sdk":"flutter"}
  • path_provider^2.0.13
  • flutter_lintsDesenvolvimento>=2.0.1 <6.0.0
  • flutter_testDesenvolvimento{"sdk":"flutter"}
  • lintsDesenvolvimento>=1.0.1 <6.0.0

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher 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