Viewing version 2.5.0. Open the latest package page.

hive_ce_flutter

2.5.0

Extension for Hive. Makes it easier to use Hive in Flutter apps.

Download archive

Readme

Extension for hive_ce please go there for documentation.

Changelog

2.5.0

  • initFlutter flushes every open box when the app is paused

2.4.0

  • Adds MaterialUiTimeOfDayAdapter for the TimeOfDay class from package:material_ui
  • Adds useMaterialUi flag to initFlutter to register MaterialUiTimeOfDayAdapter instead of TimeOfDayAdapter
  • Updates minimum Flutter version to 3.44.0
  • Hive.initFlutter uses absolute paths as-is without calling getApplicationDocumentsDirectory (by @jheld in #293)
  • IsolatedHive.initFlutter also uses absolute paths as-is

2.3.4

  • Adds hive_ce_flutter.dart to make the publish action happy

2.3.3

  • Catch exception when Flutter engine is not available in IsolatedHive.initFlutter

2.3.2

  • Fixes an issue with the ColorAdapter reading legacy color data

2.3.1

  • Fixes web compatibility check

2.3.0

  • Adds IsolatedHive.initFlutter
  • Allows changing the type ids of ColorAdapter and TimeOfDayAdapter

2.2.0

  • Fixes deprecation of Color.value

2.1.0

  • Does not crash with multiple calls to initFlutter

2.0.0

  • BREAKING: Registers ColorAdapter and TimeOfDayAdapter in Hive.initFlutter
    • MIGRATION: Remove external registration of ColorAdapter and TimeOfDayAdapter

1.2.0

  • The first release of hive_ce_flutter

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'hive_ce_flutter:2.5.0'
pubspec.yaml
name: hive_ce_flutter
description: Extension for Hive. Makes it easier to use Hive in Flutter apps.
version: 2.5.0
homepage: https://github.com/IO-Design-Team/hive_ce/tree/main/hive_flutter

environment:
  sdk: ^3.4.0
  flutter: ">=3.44.0"

dependencies:
  flutter:
    sdk: flutter

  hive_ce: ^2.22.0
  material_ui: ^1.0.0
  path_provider: ^2.0.10
  path: ^1.8.2

dev_dependencies:
  # build_runner 2.16.1 still sets AnalysisOptionsImpl.contextFeatures, removed in 14.5.0.
  analyzer: '>=14.0.0 <14.5.0'
  test: ^1.21.1
  path_provider_platform_interface: ^2.0.0
  rexios_lints: ^19.0.0
  mockito: ^5.4.1
  build_runner: ^2.5.4

Version history

VersionPublishedArchiveSHA-256
1.2.0On demandDownloadff543217…943f28
2.0.0On demandDownload39311890…0d8532
2.1.0On demandDownloade74e11d3…2d2ab9
2.2.0On demandDownload74c1d5f1…60a877
2.3.0-pre.1On demandDownloade95b5b51…27112d
2.3.0-pre.2On demandDownload100c3ed3…ebb265
2.3.0On demandDownload5eaf57a5…91c05c
2.3.1On demandDownloada0989670…be9909
2.3.2On demandDownloadf5bd57fd…ca02cc
2.3.3On demandDownload26d656c9…4b0e9a
2.3.4Cached · Upstream SHA-256 matchedDownload2677e95a…ae913a
2.4.0On demandDownload231c5f02…4a1009
2.5.0Cached · Upstream SHA-256 matchedDownload7853fb29…05f1d1

Dependencies

flutter { "sdk": "flutter" }

hive_ce "^2.22.0"

material_ui "^1.0.0"

path "^1.8.2"

path_provider "^2.0.10"