isar / hive

Lightweight and blazing fast key-value database written in pure Dart.
Apache License 2.0
4.11k stars 409 forks source link

Flutter Windows app - .lock and .hive file location #1257

Open TNelen opened 1 year ago

TNelen commented 1 year ago

Hi,

We are using Hive in our Flutter application for Windows.

The .lock and .hive files are stored in the /Documents folder on the Windows machine. Is there a possibility to store it in another location? E.g. appdata or somewhere else?

Thanks!

Kind regards, Timo

NeariX67 commented 11 months ago

This is what I came up with.

  if (GetPlatform.isWindows) {
    await Hive.initFlutter("someSubfolder");
  } else {
    await Hive.initFlutter();
  }