Search packages, repositories and app categories

GitHub repositorymalibayram/hive_listener

hive_listener

A tiny widget to listen hive box changes

hive_listener project cover
Stars
7
Forks
3
Last push (UTC)
Jun 21, 2021
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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'),
    );
  },
)
  • note: if you want to use without null safety, you can select 0.1.0 version
M. Ali Bayram GitHub avatar
GitHub author

M. Ali Bayram ↗

software developer #Flutter #Firebase #Angular #TensorFlow Computer Engineering PhD Candidate at Yıldız Technical University in Turkey

DersHubTurkey
LanguagesDartRubyHTMLSwiftKotlinObjective-C

Dependencies used

Dependency list 3 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗