Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@CoderDake
Copy link
Contributor

@CoderDake CoderDake commented May 6, 2022

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

BNzjy5sM4Hq7mJL

Profile mode

image

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read the Flutter Style Guide recently, and have followed its advice.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

@CoderDake CoderDake marked this pull request as ready for review May 6, 2022 14:42
Copy link
Contributor

@bkonyi bkonyi left a 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.

@CoderDake
Copy link
Contributor Author

@InMatrix @sfshaza2 Do you have any comments on the copy for this warning?

Copy link
Contributor

@sfshaza2 sfshaza2 left a 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

'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),
Copy link
Member

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.

Copy link
Member

@kenzieschmoll kenzieschmoll left a 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

@CoderDake
Copy link
Contributor Author

Issue created to follow up on the performance options being unselected in profile mode:
#4083

Copy link
Member

@kenzieschmoll kenzieschmoll left a 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

@CoderDake CoderDake merged commit 43cf544 into flutter:master May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add profile mode warning to Debugging Options in the performance page

5 participants