app_history

<<<<<<< HEAD A reusable Flutter package for managing history and likes with generic models.

A reusable Flutter package for managing history and likes with generic models.

Features

  • Add items to history
  • Manage likes
  • Works with any model with id and toJson()/fromJson()

Usage

import 'package:app_history/app_history.dart';

final AppHistory = AppHistory<NoteModel>(
  fromJson: (json) => NoteModel.fromJson(json),
);

final note = NoteModel(id: "1", title: "Test Note");
await AppHistory.addToHistory(note);
await AppHistory.toggleLike(note);

94da155 (Initial commit - app_history package)