-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functions to move to dart:core from dart:ui #25217
Comments
cc @floitschG |
The
(it should return double, not num). I'm more concerned about the hash functions. |
Just to be clear, the algorithms used in the Flutter hash functions today are horrible; we'd love to have better ones if you take these functions over. We're planning on changing the implementations of the ones we use anyway (flutter/flutter#859). It's the interface we're interested in moving over to core Dart, not the precise implementations. If |
I often see people use those hash functions in Dart libraries: https://github.com/google/quiver-dart/blob/master/lib/src/core/hash.dart |
We discussed the |
An update from 2018:
|
As of 2018, |
For the hashing functions,see #11617 |
Should we just mark |
Why would we do that? |
It would achieve our goal of eliminating a |
@lrhn had spent some time thinking about |
@dnfield I think using |
Update from 2023:
|
|
Well it would be |
After discussion I don't think there are any signatures/behaviors that make sense to land in the core libraries. For For |
These are functions and types that we have in dart:ui (Flutter's core library) that really should just be in dart:core:
https://master-api.flutter.dev/flutter/dart-ui/lerpDouble.html
https://master-api.flutter.dev/flutter/dart-ui/clampDouble.html
https://master-api.flutter.dev/flutter/dart-ui/hashValues.html
https://master-api.flutter.dev/flutter/dart-ui/VoidCallback.html
The text was updated successfully, but these errors were encountered: