-
Notifications
You must be signed in to change notification settings - Fork 28.7k
TextSelectionTheme support (step 2 of 3) #65044
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
TextSelectionTheme support (step 2 of 3) #65044
Conversation
Gold has detected about 1 untriaged digest(s) on patchset 1. |
Gold has detected about 2 untriaged digest(s) on patchset 2. |
Gold has detected about 21 untriaged digest(s) on patchset 2. |
Gold has detected about 26 untriaged digest(s) on patchset 3. |
Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change). If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. Changes reported for pull request #65044 at sha 2e31278e2bec24d58755212141cbdbda9df2bd30 |
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 👍
…o that everything uses the new TextSelectionTheme by default.
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
Gold has detected about 4 untriaged digest(s) on patchset 4. |
This reverts commit cb92ffc.
This was reverted due to a post-submit test failure. See #66046 for details. |
…utter#66051) This reverts commit cb92ffc.
Turn the opt-in default for ThemeData.useTextSelectionTheme to true so that everything uses the new TextSelectionTheme by default.
Description
This PR continues the migration to the new
TextSelectionTheme
started in #62014 and is described in the design doc.This step changes the default for
ThemeData.useTextSelectionTheme
to true, thus opting into the text selection theme by default. This will mean that the default colors for the cursor color, text selection and selection handles are all now based on the primary color of the color scheme. The following parameters of theThemeData
will no longer be used and will soon be deprecated:cursorColor
textSelectionColor
textSelectionHandleColor
Related Issues
#17635
#56082
#61227
Tests
I updated text selection theme tests and the editable text tests to match the new default colors.
Checklist
///
).flutter analyze --flutter-repo
) does not report any problems on my PR.Breaking Change
This step is not a breaking, but is part of a soft landing breaking change (see #62014 for more details).