Skip to content

Conversation

@a14n
Copy link
Contributor

@a14n a14n commented Oct 2, 2020

Description

NNBD migration for material

Related Issues

Tests

I added the following tests:

None

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Did any tests fail when you ran them? Please read Handling breaking changes.

@flutter-dashboard flutter-dashboard bot added a: tests "flutter test", flutter_test, or one of our tests f: cupertino flutter/packages/flutter/cupertino repository f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Oct 2, 2020
@mit-mit
Copy link
Member

mit-mit commented Oct 5, 2020

@a14n is this the last PR for Material, so that when this lands all of Material supports null safety?

@a14n
Copy link
Contributor Author

a14n commented Oct 5, 2020

@a14n is this the last PR for Material, so that when this lands all of Material supports null safety?

Yes after this PR the Flutter framework will be migrated to null safety.

..curve = null
..reverseCurve = null;
if (newValue)
position.reverseCurve = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

cc @HansMuller we might be able to get rid of this line too, it looks like RenderToggleable always sets reverseCurve when it sets curve. But that's a story for another PR.

Copy link
Contributor

@Hixie Hixie left a comment

Choose a reason for hiding this comment

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

LGTM

@a14n a14n merged commit f551178 into flutter:master Oct 6, 2020
@a14n a14n deleted the nnbd-material branch October 6, 2020 09:36
@a14n a14n mentioned this pull request Oct 6, 2020
13 tasks
BorderRadius? borderRadius,
ShapeBorder? customBorder,
double? radius,
required VoidCallback? onRemoved,
Copy link
Member

Choose a reason for hiding this comment

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

Tests in google are breaking because this was marked required.

@a14n do you remember why this needs to be required now?

/cc @Hixie @HansMuller

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nothing obvious comes to my mind. We can remove the required keyword.

Copy link
Member

Choose a reason for hiding this comment

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

Removing in #67427.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: tests "flutter test", flutter_test, or one of our tests f: cupertino flutter/packages/flutter/cupertino repository f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants