-
Notifications
You must be signed in to change notification settings - Fork 361
"More debug options" warning when in profile mode #4075
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
"More debug options" warning when in profile mode #4075
Conversation
bkonyi
left a comment
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.
If we're going to show this warning, we may as well disable the checkboxes too.
packages/devtools_app/lib/src/screens/performance/performance_screen.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/screens/performance/performance_screen.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/screens/performance/performance_screen.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/screens/performance/performance_screen.dart
Outdated
Show resolved
Hide resolved
sfshaza2
left a comment
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.
A few minor comments, otherwise, lgtm
packages/devtools_app/lib/src/screens/performance/performance_screen.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/screens/performance/performance_screen.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/test/performance/performance_screen_test.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/test/performance/performance_screen_test.dart
Outdated
Show resolved
Hide resolved
Co-authored-by: Shams Zakhour (ignore Sfshaza) <[email protected]>
…vtools into performance-profile-warning
| 'These debugging options aren't available in profile mode. ' | ||
| 'To use them, run your app in debug mode.', | ||
| style: | ||
| textStyle.copyWith(color: theme.colorScheme.errorTextColor), |
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.
since we now use this text style twice (here and in enhance_tracing.dart), add an extension method subtleErrorTextStyle to ThemeDataExtension in theme.dart. Then use that in both places.
kenzieschmoll
left a comment
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.
one comment then lgtm
|
Issue created to follow up on the performance options being unselected in profile mode: |
kenzieschmoll
left a comment
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.
one comment then lgtm
Fixes #3762
Adding a warning to the "More debug options" menu in the Performance tab.
This warning will show up when the connected app is not in debug mode.
Screenshots
Debug mode
Profile mode
Pre-launch Checklist
///).