revisit_pro 1.0.0 copy "revisit_pro: ^1.0.0" to clipboard
revisit_pro: ^1.0.0 copied to clipboard

A package to track most visited and recently opened pages in a Flutter app.

Revisit Pro #

A Flutter package that tracks the most visited and recently opened pages in an app.
It categorizes pages, applies exponential decay for ranking, persists data, and allows custom UI.

Features #

✅ Tracks Most Visited and Recently Opened pages
✅ Uses Exponential Decay for ranking
Excludes specific pages from tracking
Configurable decay rate
Persistent storage across sessions
✅ Open-source and customizable

Installation #

Add this to pubspec.yaml:

dependencies:
  revisit_pro:
    git:
      url: https://github.com/45afeef/revisit_pro.git

Usage #

Initialize Hive #

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await VisitedPagesStorage.init();
  runApp(MyApp());
}

Track Page Visits #

PageTracker.startTracking("Home Page", "collection", "/home");

// When page is closed
PageTracker.stopTracking();

Use the UI Widget to Display Most Visited Pages #

VisitedPagesListView(
  itemBuilder: (context, page) => ListTile(
    title: Text(page.pageName),
    subtitle: Text("Visited ${page.visitCount} times"),
    onTap: () => Navigator.pushNamed(context, page.url),
  ),
)

Customize Settings #

VisitedPagesConfig.setDecayRate(0.05);
VisitedPagesConfig.excludePages(["/settings", "/login"]);

Reset Data #

await VisitedPagesStorage.resetTrackingData();
2
likes
140
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

A package to track most visited and recently opened pages in a Flutter app.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, hive, path_provider

More

Packages that depend on revisit_pro