feat(CheckboxListTile): ensure that 'isThreeLine' can be configured through the theme.#166826
Conversation
…hrough the theme.
justinmc
left a comment
There was a problem hiding this comment.
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.
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.
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.
Nit: I think this exceeds the 80 character limit.
There was a problem hiding this comment.
Updated, thank you.
justinmc
left a comment
There was a problem hiding this comment.
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.
Oh I see, so you purposely want a new UniqueKey each time so that nothing gets reused. Makes sense to me.
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured 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.
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured 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.
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…hrough the theme. (flutter#166826) This PR is a continuation of [165481](flutter#165481) Related items also include: [SwitchListTile](flutter#166820), [RadioListTile](flutter#166964) ## 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.
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
…igured through the theme. (flutter/flutter#166826)
This PR is a continuation of 165481
Related items also include: SwitchListTile, RadioListTile
Pre-launch Checklist
///).