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