Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

use super parameters #684

Merged
merged 3 commits into from
May 16, 2022
Merged

use super parameters #684

merged 3 commits into from
May 16, 2022

Conversation

amanv8060
Copy link
Contributor

@amanv8060 amanv8060 commented May 13, 2022

Use super parameters

fixes #631

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read the Flutter Style Guide recently, and have followed its advice.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Copy link
Contributor Author

@amanv8060 amanv8060 left a comment

Choose a reason for hiding this comment

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

@guidezpl can you please update code segments once this is ready to be merged?

@@ -27,3 +27,4 @@ linter:
- unawaited_futures
- unnecessary_statements
- unsafe_html
- use_super_parameters
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should I add this line?

Copy link
Member

Choose a reason for hiding this comment

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

I think so, since it's not part of flutter_lints

import 'package:gallery/demos/material/material_demo_types.dart';

class DividerDemo extends StatelessWidget {
const DividerDemo({super.key, required this.type});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

CRLF issue, this is the only change in this file. or should I revert the change in this file to try again?

Copy link
Member

Choose a reason for hiding this comment

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

That's fine.

@@ -192,10 +188,7 @@ class _SectionedMenuDemo extends StatelessWidget {
// a menu whose current value is highlighted and aligned over the
// list item's center line.
class _SimpleMenuDemo extends StatefulWidget {
const _SimpleMenuDemo({
Key? key,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this has been removed from private classes which were not providing keys, due to unused element lint. Although they are actually not being used, I am not sure if this is the style.

Copy link
Member

Choose a reason for hiding this comment

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

I see, this is fine then.

Copy link
Member

@guidezpl guidezpl left a comment

Choose a reason for hiding this comment

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

Thank for the pull request.

You can update the code segments with

flutter pub get
flutter pub run grinder update-code-segments

@@ -27,3 +27,4 @@ linter:
- unawaited_futures
- unnecessary_statements
- unsafe_html
- use_super_parameters
Copy link
Member

Choose a reason for hiding this comment

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

I think so, since it's not part of flutter_lints

import 'package:gallery/demos/material/material_demo_types.dart';

class DividerDemo extends StatelessWidget {
const DividerDemo({super.key, required this.type});
Copy link
Member

Choose a reason for hiding this comment

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

That's fine.

@@ -192,10 +188,7 @@ class _SectionedMenuDemo extends StatelessWidget {
// a menu whose current value is highlighted and aligned over the
// list item's center line.
class _SimpleMenuDemo extends StatefulWidget {
const _SimpleMenuDemo({
Key? key,
Copy link
Member

Choose a reason for hiding this comment

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

I see, this is fine then.

@amanv8060
Copy link
Contributor Author

Unlike #608 (comment) code viewer worked perfectly fine this time.

@guidezpl guidezpl merged commit d1a9685 into flutter:master May 16, 2022
@amanv8060 amanv8060 deleted the super_params branch May 16, 2022 12:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use super parameters
2 participants