FLUTTER ECOSYSTEM

PalestineDevelopers/first_run

Verificação leve e fácil se o aplicativo está sendo executado pela primeira vez, aplique isso a chamadas personalizadas.

Capa do projeto primeira execução
Stars
5
Forks
0
Último push (UTC)
8 de fev. de 2022
Status do projeto
Ativo
Palestine Developers GitHub avatar
GITHUB Organization

Palestine Developers ↗

An initiative to revive the name of Palestine

LinguagensHTMLDartRubySwiftKotlinObjective-C

Tópicos técnicos

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 4 itens

README original

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

Expandir / recolher README

palestine_first_run

Part of PalestineDevelopers

Lightweight and easy check if the app runs for its first time, apply that to custom calls.

License Pub Example

PUB GitHub release GitHub stars GitHub forks

Build Status


Table Of Contents


Features

  • Check app is @ first run
  • Check custom actions is @ first call

Getting started

To start, import package

import 'package:palestine_first_run/palestine_first_run.dart';

Usage

Ensure flutter framework is active

  • Add this to the beginning of main()
// Make Sure Framework Is Ready
WidgetsFlutterBinding.ensureInitialized();

Just as easy as this

// First time (true), then (false)
final bool isFirstRun = await PalFirstRun.isFirstRun();

And for the custom calls

// First time (true), then (false)
final bool isFirstAPICall = await PalFirstRun.isFirstRun('call_api');

Contributors

Contributors