-
-
Notifications
You must be signed in to change notification settings - Fork 866
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
Migrate to Dart 3.0 #1517
Migrate to Dart 3.0 #1517
Conversation
- This was already an indirect requirement because of `flutter: ">=3.10.0"`. - setting this dependency constraint enables the new dart 3 language features.
Hi @josxha, and thanks for the contribution. |
Thanks for your message, @JaffaKetchup! I wasn't aware of the FVM project, but do hope that they manage to resolve the issues soon. |
For reference: leoafarias/fvm#474. |
@JaffaKetchup isn't this basically the same as downloading the flutter sdk multiple times in different directories? You could even create an alias with |
@josxha It's pretty much that, but it also manages the global Flutter version. I've got my fingers crossed that it might be solved soon, the maintainer replied 10 hrs ago. |
I've managed to reinstall Dart 3, Flutter & FVM by using FVM from source instead of from Chocolatey. |
Removed unused `multiplyBy` method in `CustomPoint` Replaced some `TileCoordinates` parameters with positional super params Replaced private constructor with `abstract` class for `TileUpdateTransformers` Improved `TileUpdateTransformer(s)` documentation Deprecated `TileUpdateTransformers.alwaysLoadAndPrune`, as it should be unnecessary compared to `ignoreTapEvents`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor changes to make before merging otherwise LGTM.
Thanks @josxha 🎉. |
#1512 (5fb3b3b) bumped the minimum Flutter SDK to 3.10, but did not change the minimum Dart SDK. This PR changes the Dart SDK to 3.0 minimum, enabling the new features and performance benefits.
In addition, this PR:
TileDisplay
class to benefit from new pattern matching switches, instead of switching onruntimeType
TileUpdateTransformers.alwaysLoadAndPrune
, as it should be unnecessary compared toignoreTapEvents
This PR also fixes the failing Android builds by upgrading Gradle.