-
Notifications
You must be signed in to change notification settings - Fork 338
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
Migrate theme.dart to be null safe. #3633
Merged
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
814d53b
Update globals.dart
polina-c 8d5c3d8
ns
polina-c 5044a39
ns
polina-c 455f6c8
comments
polina-c 9e71acb
ns
polina-c 0bd4728
ns
polina-c 59abcf8
Update theme.dart
polina-c f66fdf7
ignore
polina-c 119d3f9
ideTheme
polina-c e810175
Update version.dart
polina-c 1e5c40c
ns
polina-c 6815f67
ns
polina-c a85d131
ns
polina-c 81bc861
Update theme.dart
polina-c 4cc8869
ignore
polina-c 0bc089e
ideTheme
polina-c bffd848
Update utils.dart
polina-c b512d5e
Merge branch 'ns2' of github.com:polina-c/devtools into ns2
polina-c 05b719f
Merge branch 'master' of github.com:flutter/devtools into ns2
polina-c d8a1b1f
Update about_dialog_test.dart
polina-c 45b6625
Update theme.dart
polina-c 5acf384
Update theme.dart
polina-c 0c35da1
Update analytics_prompt_test.dart
polina-c 23cf846
theme
polina-c c0eee12
Update banner_messages_test.dart
polina-c 6bbd99f
Update code_size_attribution_test.dart
polina-c 8469d8d
Update common_widgets_test.dart
polina-c 0ecae82
Update cpu_profiler_test.dart
polina-c 4f8a488
Update debugger_screen_test.dart
polina-c 9811261
revert utils
polina-c 033cfa0
Update debugger_screen_test.dart
polina-c f668f94
address comments
polina-c 1f8ab25
Update chart_test.dart
polina-c 03e432e
Update rebuild_counts.dart
polina-c 784fde9
Update ide_theme_stub.dart
polina-c f8978fb
Update theme.dart
polina-c 54d9999
Update theme.dart
polina-c ca2dcde
Merge branch 'master' of github.com:flutter/devtools into ns2
polina-c 81a3dbc
Update theme.dart
polina-c d55c101
fix wrap
polina-c 93a673b
Update theme_test.dart
polina-c d10eec2
Update vm_flag_widgets_test.dart
polina-c c280712
Update theme_test.dart
polina-c File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
instead of removing this test, why don't we just replace
null
withIdeTheme()
?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.
The goal of the test is to verify everything works with null. We do not need this validation any more.
Other tests here cover non-null cases. Makes sense?
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.
In this case an empty IdeTheme would be the equivalent of what used to be null, in terms of testing the "without override" case. The "without override" case is where a user runs DevTools via
dart devtools
instead of using the DevTools embedded in their IDE. So we still want to test the case where IdeTheme does not contain overrides for backgroundColor, foregroundColor, etc.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.
fixed