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 ↗