Skip to content
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

fix: update key and lints #1155

Merged
merged 2 commits into from
Jan 2, 2024
Merged

fix: update key and lints #1155

merged 2 commits into from
Jan 2, 2024

Conversation

SputNikPlop
Copy link
Collaborator

No description provided.

@SputNikPlop SputNikPlop merged commit 6a6686b into main Jan 2, 2024
4 checks passed
@SputNikPlop SputNikPlop deleted the key branch January 2, 2024 15:53
@@ -13,14 +13,13 @@ class DecoratedEventWidget extends StatelessWidget {
final EdgeInsets padding;

const DecoratedEventWidget._(
{Key? key,
{super.key,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this what dart fmt spits out? It's fine if so, but a little surprised.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah dart format nor the analyzer throw me any errors at all, if I do try and correct it to the previous way the latest analyzer warns me to change it again.

@@ -36,11 +36,9 @@ class TwitchPredictionEventWidget extends StatelessWidget {

class _TwitchOutcomeWidget extends StatelessWidget {
const _TwitchOutcomeWidget(
{Key? key,
required this.outcome,
{required this.outcome,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing super.key

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A value for optional parameter 'key' isn't ever given.
Try removing the unused parameter.

@@ -11,8 +11,7 @@ class _DurationWidget extends StatelessWidget {
final DateTime from;
final TextStyle? style;

const _DurationWidget({Key? key, this.style, required this.from})
: super(key: key);
const _DurationWidget({this.style, required this.from});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing super.key.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A value for optional parameter 'key' isn't ever given.
Try removing the unused parameter.

kevmo314 added a commit that referenced this pull request Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants