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
19
votes
5 answers

FirebaseAppPlatform.verifyExtends error while running flutter test

When I run my bitbucket pipeline for my project im getting an error during flutter test: /root/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.24.0/lib/src/firebase_app.dart:18:25: Error: Member not found: 'FirebaseAppPlatform.verifyExtends'. …
5
votes
1 answer

Getting error while adding entity in flutter project

I had added multiple entities in object box and successfully build the build_runner. flutter pun run build_runner build. Now, I am adding two more entities but I am getting this error - could not resolve annotation @Entity() Trying to add…
raphire
  • 198
  • 9
3
votes
0 answers

Unable to build project for iOS

Just ran into this problem today using v1.30 and I'm out of ideas on what else to apply. Funny enough, I can run a debug build on an iOS device and it builds and runs correctly, but attempting to run on a simulator, or build the project in Xcode…
Swisscheese
  • 571
  • 1
  • 5
  • 21
3
votes
1 answer

How to store a list of maps in ObjectBox box?

I'm trying to store a list of Maps in the ObjectBox box, but since I'm new to ObjectBox I don't understand how to store custom data types. The data I'm trying to store (Structure looks like this) name: 'name', total: 100, refNo: 00, listOfProds:…
Pranav
  • 411
  • 6
  • 19
3
votes
2 answers

How properly use the ObjectBox flutter store opening and closing?

I am looking to define best development practices with Flutter and ObjectBox (1.1.1 -> Flutter). I would like to set up an architecture composed of Repository to implement my query functions on objects stored in the database. Here is an example for…
Dev Loots
  • 708
  • 9
  • 28
3
votes
2 answers

Flutter app running on web failing with error: Only JS interop members may be 'external'

I am trying to get my current Flutter app to run on web. I called flutter create . but if I try running it in Chrome I get prompted with about 10000 error messages which all look like this: Try removing the 'external' keyword or adding a JS interop…
Chris
  • 1,828
  • 6
  • 40
  • 108
2
votes
1 answer

ObjectBox generator warning:"Failed to find package root from output directory, generated imports might be incorrect."

Iam using the latest version of objectbox and when i run the "flutter pub run build_runner build" command i get this output: "...Failed to find package root from output directory, generated imports might be incorrect..." So when i write in main to…
user11152343
2
votes
1 answer

How initialize Objectbox entity with custom type?

I'm working with Objectbox (1.3.0) to build my database on Flutter. I try to create an entity composed of a custom type (enumeration) like this : type_enum.dart /// Type Enumeration. enum TypeEnum { one, two, three } method.dart @Entity() class…
Dev Loots
  • 708
  • 9
  • 28
2
votes
2 answers

Flutter: CocoaPods could not find compatible versions for pod "ObjectBox"

I'm using OjbectBox for the first time in my Flutter project. After I wrote the basic code to read and right user data, I'm getting this error: [!] CocoaPods could not find compatible versions for pod "ObjectBox": In Podfile: …
Lee Maan
  • 699
  • 3
  • 10
  • 30
2
votes
1 answer

Use ObjectBox / Instantiate store and box with Flutter 2.5 and Riverpod

I am using ObjectBox on Flutter 2.5 with Riverpod. The goal is to allow fast caching of a lot of data from an API. If there is a difference between remote data and that in the box, then we update. The person who no longer has the internet still has…
Sheitak
  • 71
  • 9
2
votes
1 answer

Flutter Objectbox: how to store a Map attribute?

I have a class with a Map attribute, but it seems it doesn't store this attribute. All other attributes are well stored: @JsonSerializable() @Entity() class PossessionStats { @JsonKey(defaultValue: 0) int id; String cardUuid; int total; …
DimZ
  • 297
  • 4
  • 18
2
votes
2 answers

How to update data in objectbox flutter

I was using ObjectBox for storing data. But how to update the same data. In documentation, it says it will update the data. But When I pass an old note with some new details, it create new note. Future createNotes(Note note) async { var…
Mahi
  • 1,297
  • 1
  • 14
  • 28
2
votes
2 answers

How to access/inject ObjectBox database in repository in Flutter - Reso Coder DDD

all the examples, I have seen, initialize ObjectBox in a State(less/full)Widget. I am using a layered architecture (currently refactoring to DDD) and wonder, how to inject my ObjectBox properly. In my repository, I inject the data sources using the…
2
votes
1 answer

How setup dart objectbox with a local database pre-populated?

I want to set up an ObjectBox database with Flutter. I would like to pre-populate the database file with values. When installing the application, the database file will be copied and is used by the application. I want to be able to continue to…
Dev Loots
  • 708
  • 9
  • 28
2
votes
1 answer

Flutter Objectbox: Does it work to have multiple M:N (ManyToMany) Relations and mix between @Backlink and no @Backlink

Does Objectbox Support having multiple ManyToMany Relations (M:N) ? For example: // MIX with @Backlink and no @Backlink --> causes Error in this class @Entity() class Exercise { int id; String title; String description; final unitTypes =…
DJ2695
  • 62
  • 2
  • 6
1
2 3 4 5 6 7 8