Questions tagged [flutter-objectbox]

ObjectBox is a super-fast database storing Dart objects locally.

ObjectBox is a super-fast database storing Dart objects locally.

High performance - improving response rates and enabling real-time applications.

ACID compliance - Atomic, Consistent, Isolated, Durable.

Relations - object links / relationships are built-in.

Scalable - grows with your app, handling millions of objects with ease.

Queries - filter data as needed, even across relations.

Statically typed - compile-time checks & optimizations.

Multiplatform - Android, iOS, macOS, Linux, Windows.

Schema migration - change your model with confidence.

ObjectBox Sync - keeps data in sync offline or online, between devices and servers.

Links:

112 questions
0
votes
0 answers

Flutter objectbox limit

a have a question, I need to apply limit in the messages array but I do khow can I do it. static Stream listenChatRoom(int roomId) { try { var builder = objectBox.store .box() …
Renato
  • 13
  • 4
0
votes
0 answers

Flutter ObjectBox watch

I'm using the objectbox with watch feature. But if I use watch feature I cant close the store, Can I have any problem about this? with battery low or slow app? is there a better way to do it? My code Stream>> listenRoomUnreadMessage(){ …
Renato
  • 13
  • 4
0
votes
0 answers

Create ObjectBox with openStore in Flutter

This is my model class @Entity() @Sync() class Account{ int id = 0; String? name; int? age; String? gender; logAccount() => 'Account{id: $id, name: $name}'; } And after I run flutter pub run build_runner build, I got a generate file and…
0
votes
0 answers

Build table with data from an API

Totally new to objectbox etc but is it possible to insert data, fetched from an API, in to an Objectbox table when a user of a Flutter app, for example, taps a button? Thoughts are; User Login Call to API to fetch data, based on User logged in…
Dean Ball
  • 33
  • 6
0
votes
1 answer

Flutter Object box crashing on Release

Flutter android app integrated with ObjectBox 1.6.0 works on debug mode but crashes on Release build on Android 10 and above. class ObjectBox { /// The Store of this app. late final Store store; ObjectBox._create(this.store) { // Add…
0
votes
1 answer

ObjectBox Flutter : getAll() with order and limit

My question will seem quite simple, but I'm having a hard time understanding how certain queries work with ObjectBox and Flutter. I have a List object. I would like to retrieve them all, but display only the first 5, sorted by ascending name. I find…
Sheitak
  • 71
  • 9
0
votes
1 answer

Why is an attribute of my stored object in the objectbox null?

I am saving an object in the objectbox. As you can see in the screenshot the attribute "status" is not null. But when I access the object, the attribute appears to be null (other screenshot). Where Is my mistake? Entity: import…
0
votes
0 answers

Flutter objectbox updating entity

I have two entities link together, works ok with the putting a new data into the box but if I try to update one of the entity it works ok but I loose the the one I updated anytime I try to query the source object only the that have not been updated…
TRI NI TY
  • 1
  • 1
0
votes
1 answer

How to target many entities to on entity in relation

Dear @objectbox how can I target one entity as a relation while using the putMany method in flutter...something like targeting one entity to many entities and put them once using the putMany #objectbox #flutter #flutterdev
TRI NI TY
  • 1
  • 1
0
votes
0 answers

How do I write a subscribable query involving relations in Flutter ObjectBox?

I am continuously receiving updates from a server and placing them in my ObjectBox database. My app is meant to visualize this data. The data involves runners, competition classes, etc. The effect I want to achieve is that when there is an update to…
0
votes
1 answer

How to register ObjectBox in GetIt?

How to properly register ObjectBox in GetIt? I have an error: The argument type 'Type' can't be assigned to the parameter type 'ObjectBox Function()'. final injector = GetIt.instance; class DependencyInitializer { DependencyInitializer._(); …
userName
  • 903
  • 2
  • 20
0
votes
0 answers

Pragma table info for ObjectBox

I am using ObjectBox for the flutter project. I want to get the pragma table info for the my Product Entity. Anyone know how to get the pragma for particular Entity? Like in sqlite pragma table_info('albums'); cid name type notnull …
0
votes
1 answer

Can the *.mdb file be open in two thread at the same time?

Android Objectbox Version 3.1.2 Flutter Objectbox Version 1.4.1 Android code does read/write operation Flutter code only does read operation Sometimes the android side throws this exception: Could not renew tx (another read transaction is still…
0
votes
1 answer

How to handle wholly owned nested object persistence with Objectbox in flutter app?

I have a general utilization question on how to set up Objectbox entities for wholly owned nested objects My app has a central data entity 'Class1'. The 'Class1' entity includes an array of 'Class2' instances. The 'Class2' entity includes an array…
user2868835
  • 1,250
  • 3
  • 19
  • 33
0
votes
1 answer

is it possible to have two or more ToMany relations pointing to the same object class?

I am trying to establish a relation between objects like the one below. After adding different Order objects to mainCourses and dessert, when loading the Customer object, both mainCourses and dessert lists have the same values. @Entity() class…