app_history 0.0.3
app_history: ^0.0.3 copied to clipboard
A reusable Flutter package for managing history and likes with generic models.
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
idandtoJson()/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)