Skip to content

Conversation

@TahaTesser
Copy link
Member

@TahaTesser TahaTesser commented Apr 10, 2024

fixes DropdownMenu TrailingIcon can't be styled through providing an IconButtonTheme (second PR)

Description

This PR replaces IconButton.style with ButtonStyle when merging parent IconButtonTheme as styleFrom returns defaults for some properties.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Apr 10, 2024
@TahaTesser TahaTesser force-pushed the input_decorator_iccn_button_style branch from d94a4a8 to df17eec Compare April 10, 2024 13:49
@TahaTesser TahaTesser marked this pull request as ready for review April 10, 2024 14:19
@TahaTesser TahaTesser requested a review from justinmc April 10, 2024 14:19
Copy link
Contributor

@justinmc justinmc left a comment

Choose a reason for hiding this comment

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

LGTM 👍

So the problem was just that IconButton.styleFrom overrides the overlay color (code)?

@TahaTesser
Copy link
Member Author

LGTM 👍

So the problem was just that IconButton.styleFrom overrides the overlay color (code)?

Turns out not just overlay but some properties in styleFrom are needed to be overridden by styleFrom props otherwise returned ButtonStyle gets defaults and .merge in the InputDecorator can't override them so i opted for ButtonStyle object which doesn't have defaults values and parent theme can properly merge.

Screenshot 2024-04-10 at 21 52 14

@justinmc
Copy link
Contributor

Got it, thanks!

@TahaTesser TahaTesser added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 11, 2024
@auto-submit auto-submit bot merged commit 831226a into flutter:master Apr 11, 2024
@TahaTesser TahaTesser deleted the input_decorator_iccn_button_style branch April 11, 2024 07:16
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 11, 2024
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Apr 11, 2024
flutter/flutter@97cd47a...557fbf5

2024-04-11 [email protected] Update app Android gradle scripts to use flutter.versionName and flutter.versionCode (flutter/flutter#146604)
2024-04-11 [email protected] Fix out of sync templates files and add a check (flutter/flutter#145747)
2024-04-11 [email protected] [tools] Fix `--template=plugin_ffi` formatting (flutter/flutter#146269)
2024-04-11 [email protected] Roll Flutter Engine from 40b0f81332cb to d8560d495d9f (1 revision) (flutter/flutter#146622)
2024-04-11 [email protected] Roll Flutter Engine from fef8499fb9bf to 40b0f81332cb (1 revision) (flutter/flutter#146621)
2024-04-11 [email protected] Fix `IconButton` theming in the `InputDecorator` (flutter/flutter#146567)
2024-04-11 [email protected] Roll Flutter Engine from e2a45bda45cb to fef8499fb9bf (1 revision) (flutter/flutter#146619)
2024-04-11 [email protected] Roll Flutter Engine from e47dc9a7a24d to e2a45bda45cb (1 revision) (flutter/flutter#146618)
2024-04-11 [email protected] Roll Flutter Engine from 069e73eaef34 to e47dc9a7a24d (1 revision) (flutter/flutter#146617)
2024-04-11 [email protected] Roll Flutter Engine from 28ed19073fcf to 069e73eaef34 (1 revision) (flutter/flutter#146613)
2024-04-11 [email protected] Roll Flutter Engine from 4e33a0b47e3d to 28ed19073fcf (1 revision) (flutter/flutter#146611)
2024-04-11 [email protected] Roll Flutter Engine from 6f8ee9ffd9fa to 4e33a0b47e3d (3 revisions) (flutter/flutter#146609)
2024-04-10 [email protected] Roll Flutter Engine from 91ba23575c82 to 6f8ee9ffd9fa (4 revisions) (flutter/flutter#146607)
2024-04-10 [email protected] Disable single character mode in the terminal when exiting flutter_tools (flutter/flutter#146534)
2024-04-10 [email protected] Roll pub packages (flutter/flutter#146606)
2024-04-10 [email protected] Roll Flutter Engine from beee02b5ba2d to 91ba23575c82 (4 revisions) (flutter/flutter#146605)
2024-04-10 [email protected] Remove additional references to engine v1 android embedding (flutter/flutter#146523)
2024-04-10 [email protected] Roll Flutter Engine from 077b742550ef to beee02b5ba2d (2 revisions) (flutter/flutter#146591)
2024-04-10 [email protected] Roll Flutter Engine from 0d5412d4ee4b to 077b742550ef (1 revision) (flutter/flutter#146585)
2024-04-10 [email protected] Convert ProjectMigration and ProjectMigrator to be async (flutter/flutter#146537)
2024-04-10 [email protected] Roll Flutter Engine from cee489a4e275 to 0d5412d4ee4b (7 revisions) (flutter/flutter#146577)
2024-04-10 [email protected] Roll Packages from 17f55d3 to 2c15d86 (2 revisions) (flutter/flutter#146575)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
gilnobrega pushed a commit to gilnobrega/flutter that referenced this pull request Apr 22, 2024
fixes [DropdownMenu TrailingIcon can't be styled through providing an IconButtonTheme](flutter#145081) (second PR)

### Description
 This PR replaces `IconButton.style`  with `ButtonStyle` when merging parent `IconButtonTheme`  as `styleFrom` returns defaults for some properties.
TecHaxter pushed a commit to TecHaxter/flutter_packages that referenced this pull request May 22, 2024
flutter/flutter@97cd47a...557fbf5

2024-04-11 [email protected] Update app Android gradle scripts to use flutter.versionName and flutter.versionCode (flutter/flutter#146604)
2024-04-11 [email protected] Fix out of sync templates files and add a check (flutter/flutter#145747)
2024-04-11 [email protected] [tools] Fix `--template=plugin_ffi` formatting (flutter/flutter#146269)
2024-04-11 [email protected] Roll Flutter Engine from 40b0f81332cb to d8560d495d9f (1 revision) (flutter/flutter#146622)
2024-04-11 [email protected] Roll Flutter Engine from fef8499fb9bf to 40b0f81332cb (1 revision) (flutter/flutter#146621)
2024-04-11 [email protected] Fix `IconButton` theming in the `InputDecorator` (flutter/flutter#146567)
2024-04-11 [email protected] Roll Flutter Engine from e2a45bda45cb to fef8499fb9bf (1 revision) (flutter/flutter#146619)
2024-04-11 [email protected] Roll Flutter Engine from e47dc9a7a24d to e2a45bda45cb (1 revision) (flutter/flutter#146618)
2024-04-11 [email protected] Roll Flutter Engine from 069e73eaef34 to e47dc9a7a24d (1 revision) (flutter/flutter#146617)
2024-04-11 [email protected] Roll Flutter Engine from 28ed19073fcf to 069e73eaef34 (1 revision) (flutter/flutter#146613)
2024-04-11 [email protected] Roll Flutter Engine from 4e33a0b47e3d to 28ed19073fcf (1 revision) (flutter/flutter#146611)
2024-04-11 [email protected] Roll Flutter Engine from 6f8ee9ffd9fa to 4e33a0b47e3d (3 revisions) (flutter/flutter#146609)
2024-04-10 [email protected] Roll Flutter Engine from 91ba23575c82 to 6f8ee9ffd9fa (4 revisions) (flutter/flutter#146607)
2024-04-10 [email protected] Disable single character mode in the terminal when exiting flutter_tools (flutter/flutter#146534)
2024-04-10 [email protected] Roll pub packages (flutter/flutter#146606)
2024-04-10 [email protected] Roll Flutter Engine from beee02b5ba2d to 91ba23575c82 (4 revisions) (flutter/flutter#146605)
2024-04-10 [email protected] Remove additional references to engine v1 android embedding (flutter/flutter#146523)
2024-04-10 [email protected] Roll Flutter Engine from 077b742550ef to beee02b5ba2d (2 revisions) (flutter/flutter#146591)
2024-04-10 [email protected] Roll Flutter Engine from 0d5412d4ee4b to 077b742550ef (1 revision) (flutter/flutter#146585)
2024-04-10 [email protected] Convert ProjectMigration and ProjectMigrator to be async (flutter/flutter#146537)
2024-04-10 [email protected] Roll Flutter Engine from cee489a4e275 to 0d5412d4ee4b (7 revisions) (flutter/flutter#146577)
2024-04-10 [email protected] Roll Packages from 17f55d3 to 2c15d86 (2 revisions) (flutter/flutter#146575)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
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: 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.

DropdownMenu TrailingIcon can't be styled through providing an IconButtonTheme

2 participants