-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[go_router] Applies flutter package lints #1017
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
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.
LGTM with one nit (and one question)
packages/go_router/CHANGELOG.md
Outdated
@@ -1,6 +1,10 @@ | |||
## 3.0.4 | |||
|
|||
- Applies flutter package lints. |
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.
I'm not sure "flutter package lints" really describes what's happening here; the lints aren't coming from a package (and not flutter_lints
which is what this sort of sounds like). How about "Updates code for stricter analysis options."
@@ -7,6 +7,8 @@ import 'package:flutter/material.dart'; | |||
import 'package:go_router/go_router.dart'; | |||
|
|||
import 'src/auth.dart'; | |||
import 'src/data/author.dart'; | |||
import 'src/data/book.dart'; |
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.
Why were new imports needed?
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.
Something like this
var abc = getAuthor();
does not require importing package that contains the return type.
Object.operator== takes an `Object`, and no Dart runtime passes a `null` value to an `==` implementation. SvgTheme's implementation should not have an expanded parameter type of `dynamic`. See flutter/flutter#117838 for the overarching issue for Flutter. Co-authored-by: Dan Field <dnfield@google.com>
fixes flutter/flutter#98711
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.