google/json_serializable.dart 967
Generates utilities to aid in serializing to/from JSON.
A Widget that passes a Reactive Model to all of it's children
Immutable value types, enum classes, and serialization.
FirebaseExtended/firebase-dart 372
Dart wrapper for Firebase
GoogleCloudPlatform/functions-framework-dart 290
FaaS (Function as a service) framework for writing portable Dart functions
google/built_collection.dart 212
Immutable Dart collections via the builder pattern.
A vector math package for 2D and 3D applications
Dart library to encode and decode various archive and compression formats, such as Zip, Tar, GZip, ZLib, and BZip2.
Dart API for Chart.js
A library providing a tuple data structure
pull request commentdart-lang/shelf
change Request.hijack to have the Never return type
Just ready to publish now?
Not until we are 100% sure it's landed internally.
comment created time in 2 hours
PR opened dart-lang/shelf
Fixes https://github.com/dart-lang/shelf/issues/166
The plan will be to update shelf_web_socket and sse as well before doing any releases. Once we land all those changes successfully internally then I will circle back and publish them externally.
pr created time in 3 hours
created tagdart-lang/shelf_static
A static file handler for the Dart Shelf server model
created time in 6 hours
push eventdart-lang/shelf_static
commit sha fa30419055279a00c9e428439b1abe362d18f25d
stable null safety release (#49)
push time in 6 hours
PR merged dart-lang/shelf_static
pr closed time in 6 hours
issue commentdart-lang/shelf
Request.hijack should have a return type of Never
I will circle back to this after getting the null safety releases out the door for shelf_static, shelf_web_socket, and shelf_packages_handler.
comment created time in 6 hours
issue commentdart-lang/shelf
Request.hijack should have a return type of Never
I checked on the effect of this change internally, and it does cause a small amount of breakage but it is manageable. The only affected packages are two, third_party packages - package:sse and package:shelf_web_socket.
This is not a breaking change for these packages externally, as it only results in an analyzer info message about dead code.
comment created time in 8 hours
fork domesticmouse/flutter-task-planner-app
A beautiful task planner app design made in flutter.
fork in 20 hours
issue commentgoogle/json_serializable.dart
I'm going to consider this resolved, thanks for the reply.
comment created time in a day
startedkevmoo/qr.dart
started time in a day
startedawslabs/cdk8s
started time in a day
issue openeddart-lang/shelf
Request.hijack should have a return type of Never
This function always throws, adding a return type of Never
makes it easier to use this method in functions that return non-nullable values, they otherwise have to put an unreachable throw after calling this method. See https://github.com/dart-lang/shelf_web_socket/pull/31/files/51edc9f50543a5ed463a249d4da71b926779323a#diff-9a79b3ae255d1d23c7c86b78ff48b6f8cc1184d203d9a68a02f0b036751c4e91R88/ as an example.
created time in a day
pull request commentdart-lang/shelf_static
I am merging this internally as an extra check and once that succeeds I will push a PR to release it
comment created time in a day
push eventdart-lang/shelf_static
commit sha bafde9eaddb5d02040a614e41deddd971b4d67e6
Migrate to null safety (#47) Fixes #41
push time in a day
PR merged dart-lang/shelf_static
Fixes #41
pr closed time in a day
issue closeddart-lang/shelf_static
I was wondering if there are any plans to migrate this package to null safety?
I would be happy to have an attempt at null safety migration if there are not.
closed time in a day
tnc1997pull request commentdart-lang/shelf_static
I did this as well without realizing this PR was out heh, but I just pushed up my additional changes which were just to update the changelog and pubspec.
comment created time in a day
issue commentgoogle/json_serializable.dart
I was able to get it to work with a combination of things
any_map: true
FBList.fromJson(Map.from(listPayload))
and
factory FBList.fromJson(Map<String, dynamic> json) => _$FBListFromJson(json);
But I am still curious to hear your thoughts about the solution above.
comment created time in a day
issue commentgoogle/json_serializable.dart
If I edit the json_serliazble
code to change e as Map<String,dynamic>
to Map<String,dynamic>.from(e)
it works as expected
_$_FBList _$_$_FBListFromJson(Map<String, dynamic> json) {
return _$_FBList(
info: json['info'] == null
? null
: FBListInfo.fromJson(json['info'] as Map<String, dynamic>),
members: (json['members'] as Map<String, dynamic>)?.map(
(k, e) => MapEntry(
k,
e == null
? null
: FBListMember.fromJson(Map<String, dynamic>.from(e))),
),
items: (json['items'] as Map<String, dynamic>)?.map(
(k, e) => MapEntry(k,
e == null ? null : FBListItem.fromJson(Map<String, dynamic>.from(e))),
),
);
}
_$_FBList _$_$_FBListFromJson(Map<String, dynamic> json) {
return _$_FBList(
info: json['info'] == null
? null
: FBListInfo.fromJson(json['info'] as Map<String, dynamic>),
members: (json['members'] as Map<String, dynamic>)?.map(
(k, e) => MapEntry(k,
e == null ? null : FBListMember.fromJson(e as Map<String, dynamic>)),
),
items: (json['items'] as Map<String, dynamic>)?.map(
(k, e) => MapEntry(
k, e == null ? null : FBListItem.fromJson(e as Map<String, dynamic>)),
),
);
}
comment created time in a day
issue commentgoogle/json_serializable.dart
Also, it looks like they fixed Firestore and not Realtime Database.
comment created time in a day
issue commentgoogle/json_serializable.dart
Just for the sake of my understanding, is there any reason why json_serializeable can't do a Map<String,dynamic>.from()
when it's expecting a map? Would that resolve the issue?
comment created time in a day
issue commentgoogle/json_serializable.dart
This problem is still apparent and it's very annoying. If you try to unwrap any maps from Realtime Database it falls apart.
comment created time in 2 days
issue commentgoogle/json_serializable.dart
Doesn't convert nested objects in 4.0.0-nullsafety.0
Thanks I got the point. Please provide a clear practical example in documentation.
comment created time in 2 days