flutterfire
flutterfire copied to clipboard
🔥 A collection of Firebase plugins for Flutter apps.
Currently creating Models via the ODM only supports json_serializable. Freezed supported will be added to allow developers to define models with Freezed (and json_serializable). This issue will be updated with...
Add a `@Document(path)` _Originally posted by @CiriousJoker in https://github.com/FirebaseExtended/flutterfire/discussions/7475#discussioncomment-1795752_
Consider: ```dart @Collection('firestore-example-app/test/private-advanced') @JsonSerializable() class Foo { Foo({ this.firstName, this.lastName, }); final String? firstName; final String? lastName; } ``` Currently, it is "allowed" to write: ```dart void main() { FooCollectionReference().orderByFirstName().orderByLastName(startAt:...
Repro: ```dart @Collection('firestore-example-app/test/private-advanced') @JsonSerializable() class Foo { Foo({ this.firstName, this.lastName, }); final String? firstName; final String? lastName; } void main() { FooCollectionReference().orderByFirstName(startAt: 'John').orderByLastName(); } ``` This should be valid but...
Users want a way to store the ID of a document within the deserialized class Some things to consider: - calling `ref.set(...)` or `ref.update(...)` should not allow changing the "id",...
## Bug report **Describe the bug** When the `name` is defined in the JsonKey for a field that has a different name on the class and in the field in...
## Bug report When having a field with a type enum, the ODM generator automagically produces code to store or retrieve the values (technically as a String), however it does...
This has been happening for a while, but never reported it. I set breakpoints for All Exceptions and Uncaught Exceptions and I get this every time. Latest flutter, packages etc....