FLUTTER ECOSYSTEM

PalestineDevelopers/first_run

アプリが初めて実行されているかどうかを軽量かつ簡単に確認し、カスタム呼び出しに適用します。

初回実行 のプロジェクト画像
Stars
5
Forks
0
最終プッシュ(UTC)
2022/02/08
プロジェクト状態
公開中
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