FLUTTER ECOSYSTEM

PalestineDevelopers/first_run

앱이 처음 실행되었는지 가볍고 쉽게 확인하고, 사용자 정의 호출에 적용하세요.

처음 실행 프로젝트 이미지
Stars
5
Forks
0
최근 푸시(UTC)
2022. 2. 8.
프로젝트 상태
활성
Palestine Developers GitHub avatar
GITHUB Organization

Palestine Developers ↗

An initiative to revive the name of Palestine

언어HTMLDartRubySwiftKotlinObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 4 개

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

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