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
1
vote
0 answers

How to make sync between multiple devices of a same user using ObjectBox Sync?

I know ObjectBox Sync is able to sync data across multiple devices, my question is that: How to make synchronization between multiple devices belongs to the same user? You know in my use case, our app is an Internet app serving many users around the…
Jim Gan
  • 19
  • 2
1
vote
0 answers

Flutter ObjectBox : (Data Observers & Rx) Refresh list of previous screen based on operation on current screen

I am using ObjectBox Database in Flutter. Now I want to observe the data of a particular entity and change the list when that entity will get updated. I saw documentation DataObserver & Rx and tried to implement it as…
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
0
votes
1 answer

passing parameter to object box query

I am new to object box. I am struggling on finding a way to pass parameters to my query. i looked at the documentation but still struggling. this is my code late Stream> _stream; _stream = _Mystore .box() …
yoohoo
  • 1,147
  • 4
  • 22
  • 39
0
votes
0 answers

How to properly set up a ToMany relation with Objectbox in Flutter?

The Objectbox is setup fine. It works for other entities. This is the class I want to store in the Objectbox: class A { String id; List fieldA; List fieldB; } The custom class B instances stored in fieldA and fieldB are all unique and…
0
votes
0 answers

objectbox ToMany relation doesn't work in flutter

I'm using objectbox in my project, i have Playlist entity that include List of Videos, i'm using ToMany class for the List
wps
  • 21
  • 6
0
votes
0 answers

Use ObjectBox stream that will be used in multiple widgets independently with flutter bloc in clean architecture pattern (Uncle Bob)

I am creating a flutter application with clean archetecture with bloc as state management solution and object box as local datastore,object-box has a feature of stream which emits when ever there is a data change I want to listen it in multiple…
0
votes
0 answers

Unit Testing Object Box for Flutter App in macOS is failing

While reading from object box for doing unit testing for flutter app in mac, it is giving error like RangeError (byteOffset): Invalid value: Valid value range is empty: 0 It is coming for any call of query.find(). Object box version is 1.6.2 How to…
raphire
  • 198
  • 9
0
votes
0 answers

Flutter ObjectBox: Incoming index ID does not match existing UID

I'm dealing with an issue related to ObjectBox migrations. Whenever I make a name change to any property in the app, if I re-run the flutter pub run build_runner build command to re-build the generated files, I'll get an error like the following if…
0
votes
0 answers

How simplify code for Custom Type in objectbox?

I am trying to optimize the code definition/implementation of a Custom Type on an Objectbox Entity using Flutter and Dart. To declare a custom type in an entity I proceed in this way. @Entity() class Car { /// ObjectBox 64-bit integer ID property,…
Dev Loots
  • 708
  • 9
  • 28
0
votes
1 answer

Unsupported operation: Loaded ObjectBox core dynamic library

I updated flutter from 3.5 to latest flutter 3.7.2 flutter --version Flutter 3.7.6 • channel stable • https://github.com/flutter/flutter.git Framework • revision 12cb4eb7a0 (6 days ago) • 2023-03-01 10:29:26 -0800 Engine •…
Happy Singh
  • 21
  • 1
  • 4
0
votes
1 answer

Does it matter which side of an ObjectBox Many to Many relationship the @Backlink annotation goes on?

The ObjectBox docs and my own empirical research have shown the @Backlink annotation should always be placed on the ToMany side of a One to Many relationship, but it is unclear to me if it matters which side of a Many to Many relationship the…
ubiquibacon
  • 10,451
  • 28
  • 109
  • 179
0
votes
1 answer

Objectbox flutter apple silicon emulator support

Does objectbox flutter support ios emulator on M1 macbooks? I get this error despite following Getting started guide, however it works fine in CI which also runs on M1 chip (but against physical phone engine snapshot, not the emulator) $ pod…
eeqk
  • 3,492
  • 1
  • 15
  • 22
0
votes
0 answers

objectbox query conditions for related entities ignore main table queries

I have this two tables: @Entity() class Cikkek { @Id() int id; String cikkszam = ''; String cikknev = ''; String gyarto = ''; final kategoria = ToOne(); } @Entity() class Kategoriak { @Id(assignable: true) int azonosito…
Ebadta
  • 317
  • 1
  • 3
  • 10
0
votes
0 answers

Can I query with one "and" and 3 "or" conditions?

Can i have a query, where i have one "and" and three "or" conditions? I tried with this one, but it has webmegjel = 2 entries in the list, so it does and or or , not and (or or). I tried to give extra parentheses for the "or"-s, didn't help…
Ebadta
  • 317
  • 1
  • 3
  • 10
0
votes
0 answers

Creating model: lib/objectbox-model.json

I am trying to create a Objectbox model in flutter app But it shows me the following error ///////////// \[INFO\] Generating build script completed, took 221ms \[INFO\] Reading cached asset graph completed, took 46ms \[INFO\] Checking for updates…