v0.0.14
palestine_first_run
輕量且簡單的檢查方法,用於判斷應用是否首次運行,並将其應用於自定義呼叫。
31喜歡 57近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
輕量且簡單的檢查方法,用於判斷應用是否首次運行,並将其應用於自定義呼叫。
以下為英文專案原文快照,最新內容請造訪 GitHub。
Lightweight and easy check if the app runs for its first time, apply that to custom calls.
To start, import package
import 'package:palestine_first_run/palestine_first_run.dart';
Ensure flutter framework is active
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');
依賴清單 4 項
{"sdk":"flutter"}^2.0.7^1.5.2^1.20.1先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗