Skip to main content

app_history 0.0.3 copy "app_history: ^0.0.3" to clipboard
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 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)

0
likes
155
points
44
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, shared_preferences, uuid

More

Packages that depend on app_history