Skip to content

[CP: 3.32] [Widget Inspector] Update on-device inspector button to generic unicode icon #169092

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

Conversation

elliette
Copy link
Member

@elliette elliette commented May 19, 2025

Issue Link:

What is the link to the issue this cherry-pick is addressing?

#168846

Changelog Description:

Explain this cherry pick in one line that is accessible to most Flutter developers. See best practices for examples

This cherry pick fixes an issue where some users would see a question mark instead of the appropriate icon in the widget inspector button which toggles select-mode on/off.

Impact Description:

Users who don't have cupertino_icons as a dependency in their pubspec will see a question mark in one of the widget inspector buttons.
Screenshot 2025-05-19 at 12 50 15 PM

Workaround:

Is there a workaround for this issue?

Yes, add cupertino_icons package to user's pubspec.

Risk:

What is the risk level of this cherry-pick?

Low

Test Coverage:

Are you confident that your fix is well-tested by automated tests?

This was tested manually, there are no screenshot tests for this. However, this is only a UI change and not a behavior change.

Validation Steps:

What are the steps to validate that this fix works?

  1. Run an app that doesn't have cupertino_icons in its pubspec
  2. Open Flutter DevTools > Inspector
  3. Enable select widget mode
  4. Should not see a ? on any of the buttons

…lutter#168847)

Resolves flutter#168846

This is a follow-up to flutter#167677.
For apps that do not import `package:cupertino_icons`, the new on-device
button's icon shows up as a `[?]`.

This fix:
* adds an explicit dependency on `package:cupertino_icons` to the
framework
* imports `CupertinoIcons` into `lib/src/widgets/app.dart`

*Note: For some reason, adding the import to
`packages/flutter/lib/src/material/app.dart` and
`packages/flutter/lib/src/cupertino/app.dart` did not resolve the issue.
That's why I've added it to `lib/src/widgets/app.dart`, even though it's
not actually used in that file.*

**Let me know if this is acceptable!** (cc @Piinks) I'm guessing we
might not want to add a dependency on `cupertino_icons` to the Framework
(this might even be breaking change?) so if not, it might make sense to
use a different icon for the on-device inspector. Thanks!
@flutter-dashboard
Copy link

This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter.

Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. f: cupertino flutter/packages/flutter/cupertino repository labels May 19, 2025
@elliette elliette changed the title [Widget Inspector] Fix missing cupertino icon in on-device inspector … [CP-beta][Widget Inspector] Update on-device inspector button to generic unicode icon May 19, 2025
@matanlurey matanlurey changed the title [CP-beta][Widget Inspector] Update on-device inspector button to generic unicode icon [CP: 3.32] [Widget Inspector] Update on-device inspector button to generic unicode icon May 19, 2025
Copy link
Contributor

@matanlurey matanlurey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, let's hold merging this until the initial 3.32 stable is successfully release.

(Feel free to dismiss my review at that time, I'm likely OOO by then)

@matanlurey matanlurey added the autosubmit Merge PR when tree becomes green via auto submit App label May 20, 2025
@auto-submit auto-submit bot merged commit 673806f into flutter:flutter-3.32-candidate.0 May 20, 2025
143 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App f: cupertino flutter/packages/flutter/cupertino repository f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy