Search packages, repositories and app categories

Package detailsv0.0.14

palestine_first_run

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

AndroidiOSWebmacOSWindowsLinux
30-day downloads
83
Likes
31
Pub points
150

Install package

flutter pub add palestine_first_run

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A lightweight Flutter package that simplifies checking whether an app is running for the first time. It provides a straightforward API to detect first-run scenarios and execute custom logic accordingly, such as showing onboarding screens or initializing default settings. Designed for ease of use across all major platforms, it integrates seamlessly into existing workflows without adding overhead. Ideal for developers seeking minimal, reliable first-run detection in their applications.

Use cases

  • App onboarding flows
  • Initial setup configurations
  • First-time user welcome messages
  • Resetting default preferences
  • Tracking first launch events
  • Custom first-run actions

Key features

  • Simple API for first-run detection
  • Supports all Flutter platforms
  • Lightweight and minimal dependencies
  • Extensible for custom logic
  • Persistent storage using shared_preferences
  • Easy integration with flutter pub add

Suitable for

  • New Flutter projects
  • Onboarding implementations
  • Apps needing first-launch logic
  • Developers prioritizing simplicity
  • Cross-platform apps
  • Minimalist utility needs

Considerations

  • Relies on shared_preferences for persistence
  • Does not handle multiple app reinstalls differently
  • No built-in UI components
  • Limited to first-run detection only
  • Requires manual handling of edge cases
  • Not suitable for complex state management

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.