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
2
votes
1 answer

How to combine two streams where the second depends on the first?

I'm building an app where a Document has a DocumentTemplate which belongs to a DocumentFamily. I'm working on the basic CRUD operations for the app and I need a watchDocumentTemplateById method where I get a stream of a DocumentTemplate but I also…
Teio07
  • 53
  • 1
  • 5
1
vote
1 answer

Flutter Objectbox how to fix "Read Only File System" Code 30?

I developed my app for Windows and it works perfectly fine. So after some time I tried to build it to Android, it come with an error E/Box (30248): Storage error "Read-only file system" (code 30) I have read the doc from Objectbox and I know…
Trisk Khan
  • 25
  • 7
1
vote
0 answers

Objectbox Sync with Fly.io

I would like apply objectbox sync to fly.io. In testing in local, it is fine with the docker command. But in deploying to fly.io, I have no opinion with how to work -model command in fly.io. docker run --rm -it \ --volume "$(pwd):/data" \ …
Sithu Aung
  • 11
  • 2
1
vote
0 answers

Dart - Export data from objectbox to firebase

Hi i need export the data created by objectbox to firebase. How could I do it if it is saved in a .mdb file, any ideas?
1
vote
1 answer

Flutter with Equitable and ObjectBox: ToMany relationship not updating properly

I have the following classes: import 'package:equatable/equatable.dart'; import 'package:objectbox/objectbox.dart'; @Entity() /* All fields of a class which extends Equatable should be immutable, but ObjectBox requires the `id` field to be mutable…
ubiquibacon
  • 10,451
  • 28
  • 109
  • 179
1
vote
1 answer

Streaming data from local ObjectBox (or Hive) database in a Clean Architecture Style

Maybe someone else has the same issues as I had, so here is how I implemented it, finally. I am showing this for ObjectBox, but some of the methods work for Hive or other databases as well. My issues was about setting-up the ObjectBox stream and…
w461
  • 2,168
  • 4
  • 14
  • 40
1
vote
2 answers

ObjectBox Failure: "FormatException: Unexpected end of input (at character 1)"

I get the failure [SEVERE] objectbox_generator:generator on lib/$lib$: FormatException: Unexpected end of input (at character 1) ^ [INFO] Running build completed, took 3.9s [INFO] Caching finalized dependency graph completed, took 529ms [SEVERE]…
w461
  • 2,168
  • 4
  • 14
  • 40
1
vote
0 answers

How to exclude particular Dart files while compilation in flutter

I'm trying to run my flutter-app in web. So I created a web folder and added all the necessary things. Since I'm using the objectBox in multiple dart files, I'm getting error based on ObjectBox. So what I did to find the issue was, In the main.dart…
Guhan
  • 35
  • 6
1
vote
1 answer

Flutter ObjectBox - Can't generate DB model with custom class

Following the NoSQL Database Storage | Flutter ObjectBox (vs Sqlite, Sqflite, Hive), I am trying to setup an ObjectBox database with multiple classes. I currently have the following classes, Exercise.dart import…
Ali Haidar
  • 13
  • 3
1
vote
4 answers

Getting error as "Unhandled Exception: Bad state: failed to create store: 10001 Cannot open store: another store is still open using the same path"

The app is open then After clicking notification main gets called again and then getting store object as null but still getting this error when await openStore() is called Unhandled Exception: Bad state: failed to create store: 10001 Cannot open…
minato
  • 2,028
  • 1
  • 18
  • 30
1
vote
1 answer

objects are not stored into objectbox (Flutter)

So Im trying to save an object(with only one String attribute) in the ObjectBox. The ObjectBox is called favoriteBox. With the onLongPress-function im trying to put the object in the box. In the initState-function im trying to put all the objects…
Yuki
  • 255
  • 1
  • 2
  • 9
1
vote
2 answers

Flutter how to convert List for using ObjectBox
I have a model like this code class Folder { int id; String title; Color? color; List notes; final user = ToOne(); String? get dbNotes => json.encode(notes); set dbNotes(String? value) { notes = json.decode(value!); …
Grace
  • 11
  • 3
1
vote
1 answer

How to pre populate generated files in Code Magic for flutter

I am trying to use object box in flutter application. It gives two files on pub run one objectbox.g.dart and other one objectbox-model.json. The former file is ignored in gitignore. Now that we are trying to use Code Magic to implement CD, we are…
raphire
  • 198
  • 9
1
vote
0 answers

Objectbox doesn't store nullable value in one to many relation

I have this one to many relation which looks like this. @Entity() class Product { @Id() int id; String name; String category; int categoryId; WeightType weightType; double? price; double weight; bool isRefunded; Product({ …
Pokaboom
  • 1,110
  • 9
  • 28
1
vote
1 answer

how to add same object in objectbox's box multiple times?

I have ToMany relation which looks like this, @Entity() class Pdf { @Id() int id; Uint8List pdfData; final String customerName; @Property(type: PropertyType.date) final DateTime dateTime; @Backlink() var products =…
Pokaboom
  • 1,110
  • 9
  • 28