hive_listener 1.1.0 copy "hive_listener: ^1.1.0" to clipboard
hive_listener: ^1.1.0 copied to clipboard

outdated

A tiny widget to listen hive box changes, using the ValueListenableBuilder with removing unnecessary parts of it, like context and child widget of it.

hive_listener #

A tiny widget to listen hive box changes

How to use #

HiveListener(
  box: Hive.box('settings'),
  keys: ['dark_theme'], // keys is optional to specify listening value changes
  builder: (box) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: box.get('dark_theme', defaultValue: false) ? ThemeData.dark() : ThemeData.light(),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  },
)
20
likes
0
pub points
81%
popularity

Publisher

verified publisherdershub.com

A tiny widget to listen hive box changes, using the ValueListenableBuilder with removing unnecessary parts of it, like context and child widget of it.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, hive, hive_flutter

More

Packages that depend on hive_listener