palestine_first_run 0.0.14 copy "palestine_first_run: ^0.0.14" to clipboard
palestine_first_run: ^0.0.14 copied to clipboard

Lightweight and easy check if the app runs for its first time, apply that to custom calls.

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';
copied to clipboard

Usage #

Ensure flutter framework is active

  • Add this to the beginning of main()
// Make Sure Framework Is Ready
WidgetsFlutterBinding.ensureInitialized();
copied to clipboard

Just as easy as this

// First time (true), then (false)
final bool isFirstRun = await PalFirstRun.isFirstRun();
copied to clipboard

And for the custom calls

// First time (true), then (false)
final bool isFirstAPICall = await PalFirstRun.isFirstRun('call_api');
copied to clipboard
32
likes
150
points
88
downloads

Publisher

verified publishermsayed.net

Weekly Downloads

2024.09.26 - 2025.04.10

Lightweight and easy check if the app runs for its first time, apply that to custom calls.

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, shared_preferences

More

Packages that depend on palestine_first_run