Skip to content
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

YaruBanner: remove effectively unused copyIconAsWatermark #428

Merged
merged 1 commit into from Nov 29, 2022
Merged

YaruBanner: remove effectively unused copyIconAsWatermark #428

merged 1 commit into from Nov 29, 2022

Conversation

jpnurmi
Copy link
Member

@jpnurmi jpnurmi commented Nov 29, 2022

There's one occurrence of copyIconAsWatermark in the yaru_widgets.dart example, and another in the software app. Both of them pass watermarkIcon so neither is actually "copying" the leading icon as a watermark. This PR is a proposal to make the API more intuitive and just check if watermarkIcon != null. One can pass the same widget to both properties if that's desired.

Pull request checklist

  • This PR does not introduce visual changes, or
    • I ran flutter test --update-goldens and committed the changes if there were any, or
    • I added before/after/light/dark screenshots if the visual changes I made were not covered by golden tests.
      Before After
      Light
      Dark

I found occurrences of two `copyIconAsWatermark`. One in the example
and one in the software app. Both of them pass `watermarkIcon` so just
check if `watermarkIcon != null`. One can pass the same widget to both
properties should they want to "copy" it.
@Feichtmeier Feichtmeier merged commit 28e5826 into ubuntu:main Nov 29, 2022
@jpnurmi jpnurmi deleted the yaru-banner-copy-watermark branch November 30, 2022 18:53
@jpnurmi jpnurmi mentioned this pull request Jan 11, 2023
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.

None yet

2 participants