-
-
Notifications
You must be signed in to change notification settings - Fork 551
fix: format according to dart 3.7 #1387
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1387 +/- ##
===========================================
+ Coverage 35.92% 36.83% +0.91%
===========================================
Files 40 41 +1
Lines 849 885 +36
===========================================
+ Hits 305 326 +21
- Misses 544 559 +15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@juliansteenbakker I'm aware we needed to redo the formatting here (the change for onSurfaceCleanup needed the min Flutter version to go up). Where in dart-lang/sdk was the new opt-out discussed? The new formatter style is nice, but some things still need tweaking on that front I think (I.e. some of the arrow function formatting still needed fixing) |
See dart-lang/dart_style@71ac085 for the merge request. We can enable it in the future with:
I think the best for now is to wait until this is landed, and apply asap. Otherwise we will have a lot of git diffs for nothing. |
I noticed it too. They announced it on their socials iirc. I agree we should land the formatting fix as soon as possible. |
It seems that Source: https://github.com/dart-lang/dart_style/blob/main/CHANGELOG.md & dart-lang/dart_style#1707 |
I'm aware that the formatter option was branch cut for 3.8 only. Let's just format as-is now and revisit this later. (there will be fixes for the new formatter style anyway, so we might need to do a second formatting pass once those fixes are in) |
# Conflicts: # example/lib/widgets/scanner_error_widget.dart
Due to the min sdk being 3.7, we should update our formatting accordingly. However, there is a new option comming that will make it possible to opt-out of this new format. @navaronbracke Do you have any opinion on this?