Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TNelen opened this issue Oct 29, 2023 · 1 comment
Open

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

TNelen opened this issue Oct 29, 2023 · 1 comment

Comments

@TNelen
Copy link

TNelen commented Oct 29, 2023

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
Copy link

This is what I came up with.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants