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

outdated

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

Fork Star Watch


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.isFirstCall('call_api');
30
likes
0
pub points
63%
popularity

Publisher

verified publishermsayed.net

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_web_plugins, shared_preferences

More

Packages that depend on palestine_first_run