Skip to content
New issue

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

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

Already on GitHub? # to your account

big int will be 48856307306397696 #1327

Open
zhengbomo opened this issue Jan 12, 2025 · 0 comments
Open

big int will be 48856307306397696 #1327

zhengbomo opened this issue Jan 12, 2025 · 0 comments

Comments

@zhengbomo
Copy link

final user = {
  'id': 48856307306397697,
  'accountId': 1967,
};
final dir = await getApplicationDocumentsDirectory();
final box = await Hive.openBox("test", path: dir.path);
// ⚠️ readUser.id will be 48856307306397696 next launch time
final readUser = box.get("user");

// write user
box.put('user', user);
await box.flush();

// readUser.id will be correct
final readUser2 = box.get("user");
// readUser2.id will be 48856307306397697

issure version:

  • hive 2.2.3
  • hive 3.0.0-dev

hive 4.0.0-dev.2: this version work well

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

No branches or pull requests

1 participant