repository_hive 2.0.0

  • Readme
  • Changelog
  • Installing
  • 74

The HiveRepository is a repository-based wrapper around hive.

You still need to register TypeAdapters for the classes that you want to save as well as initialize Hive.

[2.0.0] - 2019-10-02

  • Bump repository dependency version.

[1.0.4] - 2019-10-02

  • Use more elegant approach to delay watching of boxes in another microtask.

[1.0.3] - 2019-10-01

  • Bump repository dependency version and throw ItemNotFound error if item is not in box.

[1.0.2] - 2019-09-14

  • Bump repository dependency version and throw ItemNotFound error if item is not in box.

[1.0.1] - 2019-09-06

  • Fixed behavior of fetch and fetchAll to respect cancelling the stream after the first element.

[1.0.0] - 2019-09-06

  • Remove unnecessary flutter dependency.

[0.0.2] - 2019-09-04

  • openBox before using it.

[0.0.1] - 2019-08-22

  • Initial release.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  repository_hive: ^2.0.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:repository_hive/repository_hive.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 25, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (repository).

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and repository_hive.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.2 <3.0.0
hive ^1.0.0 1.3.0 1.4.0-dev
repository ^1.0.3 1.0.4 2.0.0
Transitive dependencies
meta 1.1.8
path 1.6.4
pointycastle 1.0.2
rxdart 0.22.6 0.23.1