hive icon indicating copy to clipboard operation
hive copied to clipboard

Flutter Windows app - .lock and .hive file location

Open TNelen opened this issue 2 years ago • 1 comments

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

TNelen avatar Oct 29 '23 20:10 TNelen

This is what I came up with.

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

NeariX67 avatar Dec 11 '23 15:12 NeariX67