-
Notifications
You must be signed in to change notification settings - Fork 28.5k
feat(CheckboxListTile): ensure that 'isThreeLine' can be configured through the theme. #166826
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
feat(CheckboxListTile): ensure that 'isThreeLine' can be configured through the theme. #166826
Conversation
…hrough the theme.
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
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 nits 👍 . Thanks for following up on this for the other classes.
|
||
Widget buildFrame({bool? themeDataIsThreeLine, bool? themeIsThreeLine, bool? isThreeLine}) { | ||
return MaterialApp( | ||
key: UniqueKey(), |
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.
Is this key used?
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 believe this key is useful. Since the same widget tree is called multiple times below with slight modifications, a unique key is needed here to prevent reuse-related errors.
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.
Oh I see, so you purposely want a new UniqueKey each time so that nothing gets reused. Makes sense to me.
/// If null, the value from [ListTileThemeData.isThreeLine] is used. | ||
/// If that is also null, the value from the [ListTileThemeData] returned by [ThemeData.listTileTheme] is used. | ||
/// If still null, the default value is `false`. |
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.
Nit: I think this exceeds the 80 character limit.
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.
Updated, thank you.
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 👍 . I'll add autosubmit, but heads up that there may be other PRs about to merge that could cause a conflict with this one.
|
||
Widget buildFrame({bool? themeDataIsThreeLine, bool? themeIsThreeLine, bool? isThreeLine}) { | ||
return MaterialApp( | ||
key: UniqueKey(), |
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.
Oh I see, so you purposely want a new UniqueKey each time so that nothing gets reused. Makes sense to me.
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…gh the (#166964) This PR is a continuation of [165481](#165481) Related items also include: [SwitchListTile](#166820), [CheckboxListTile](#166826) ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing. --------- Co-authored-by: Tong Mu <[email protected]>
…ough the theme. (#166820) This PR is a continuation of [165481](#165481) Related items also include: [RadioListTile](#166964), [CheckboxListTile](#166826) ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing.
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…nfigured through the theme. (flutter/flutter#166826)
…gh the (flutter#166964) This PR is a continuation of [165481](flutter#165481) Related items also include: [SwitchListTile](flutter#166820), [CheckboxListTile](flutter#166826) ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing. --------- Co-authored-by: Tong Mu <[email protected]>
…ough the theme. (flutter#166820) This PR is a continuation of [165481](flutter#165481) Related items also include: [RadioListTile](flutter#166964), [CheckboxListTile](flutter#166826) ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing.
This PR is a continuation of 165481
Related items also include: SwitchListTile, RadioListTile
Pre-launch Checklist
///
).