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
Fix chips onDeleted
callback don't show the delete button when disabled
#137685
Fix chips onDeleted
callback don't show the delete button when disabled
#137685
Conversation
85811c4
to
820f38f
Compare
Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change). If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. Changes reported for pull request #137685 at sha 820f38fe8bfbbf37a15653354eb91a709f43e1ef |
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.
LGTM - there are quite a few golden file changes; please check to see that they're all valid.
820f38f
to
af3b0d4
Compare
Golden file changes are available for triage from new commit, Click here to view. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. Changes reported for pull request #137685 at sha af3b0d48b544abb1fca652f1d731433c18080514 |
feb1929
to
bd5dcd7
Compare
Golden file changes are available for triage from new commit, Click here to view. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
Blocked by #138009 |
I don't know that this is blocked by #138009, @TahaTesser can you share more context? I think that issue can be fixed before or after this one lands. |
Chip with a delete button isn't rendered properly when disabled in the canvaskit renderer after #136918 We will need to be able to test the chip in canvaskit renderer |
Waiting for flutter/engine#48142 to roll into framework |
bd5dcd7
to
a717230
Compare
Golden file changes are available for triage from new commit, Click here to view. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
a717230
to
a1c8c28
Compare
Golden file changes are available for triage from new commit, Click here to view. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
Golden file changes are available for triage from new commit, Click here to view. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
Rebased to get engine fix flutter/engine#48142 Pushed an empty to get updated golden files and approved the golden files. |
d65dbcc
to
a8a2a5b
Compare
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.
It looks like there is a merge conflict here. I checked the Google testing failure, and it looks unrelated, but a rebase with the merge being resolved would help confirming that. :)
It's actually a conflict from my own PR #138287 😂
It was failing before the conflict. Let me resolve the conflict and try again. |
8af5539
to
57188f2
Compare
57188f2
to
0960e97
Compare
@Piinks |
Pushed an empty to make sure all is good. |
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.
I checked the goldens, and they should be good to go. I'll keep an eye on when this lands though just in case there is an issue. :)
flutter/flutter@5e5b529...918e336 2023-11-30 zanderso@users.noreply.github.com Move Impeller tests on Pixel 7 Pro from staging to prod (flutter/flutter#139280) 2023-11-30 xubaolin@oppo.com Introduce multi-touch drag strategies for `DragGestureRecognizer` (flutter/flutter#136708) 2023-11-30 godofredoc@google.com Use the correct recipe on fuchsia_precache. (flutter/flutter#139279) 2023-11-30 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Migration for the `sendTiming` events for `package:unified_analytics`" (flutter/flutter#139278) 2023-11-30 godofredoc@google.com Migrate fuchsia_precache to shard tests. (flutter/flutter#139202) 2023-11-29 tessertaha@gmail.com Fix chips `onDeleted` callback don't show the delete button when disabled (flutter/flutter#137685) 2023-11-29 engine-flutter-autoroll@skia.org Roll Flutter Engine from 9a7e49d75411 to 35939ca8534f (5 revisions) (flutter/flutter#139259) 2023-11-29 58190796+MitchellGoodwin@users.noreply.github.com Refactor to use Apple system fonts (flutter/flutter#137275) 2023-11-29 goderbauer@google.com Dynamic view sizing (flutter/flutter#138648) 2023-11-29 ian@hixie.ch Roll dependencies (flutter/flutter#139203) 2023-11-29 92773903+yakagami@users.noreply.github.com add sourceTimeStamp to ScaleUpdateDetails (flutter/flutter#135936) 2023-11-29 engine-flutter-autoroll@skia.org Roll Flutter Engine from 222beb28a8eb to 9a7e49d75411 (1 revision) (flutter/flutter#139250) 2023-11-29 gspencergoog@users.noreply.github.com Remove deprecated `PlatformMenuBar.body` (flutter/flutter#138509) 2023-11-29 42216813+eliasyishak@users.noreply.github.com Migration for the `sendTiming` events for `package:unified_analytics` (flutter/flutter#138896) 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 rmistry@google.com,stuartmorgan@google.com,tarrinneal@google.com 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
…r#5526) flutter/flutter@5e5b529...918e336 2023-11-30 zanderso@users.noreply.github.com Move Impeller tests on Pixel 7 Pro from staging to prod (flutter/flutter#139280) 2023-11-30 xubaolin@oppo.com Introduce multi-touch drag strategies for `DragGestureRecognizer` (flutter/flutter#136708) 2023-11-30 godofredoc@google.com Use the correct recipe on fuchsia_precache. (flutter/flutter#139279) 2023-11-30 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Migration for the `sendTiming` events for `package:unified_analytics`" (flutter/flutter#139278) 2023-11-30 godofredoc@google.com Migrate fuchsia_precache to shard tests. (flutter/flutter#139202) 2023-11-29 tessertaha@gmail.com Fix chips `onDeleted` callback don't show the delete button when disabled (flutter/flutter#137685) 2023-11-29 engine-flutter-autoroll@skia.org Roll Flutter Engine from 9a7e49d75411 to 35939ca8534f (5 revisions) (flutter/flutter#139259) 2023-11-29 58190796+MitchellGoodwin@users.noreply.github.com Refactor to use Apple system fonts (flutter/flutter#137275) 2023-11-29 goderbauer@google.com Dynamic view sizing (flutter/flutter#138648) 2023-11-29 ian@hixie.ch Roll dependencies (flutter/flutter#139203) 2023-11-29 92773903+yakagami@users.noreply.github.com add sourceTimeStamp to ScaleUpdateDetails (flutter/flutter#135936) 2023-11-29 engine-flutter-autoroll@skia.org Roll Flutter Engine from 222beb28a8eb to 9a7e49d75411 (1 revision) (flutter/flutter#139250) 2023-11-29 gspencergoog@users.noreply.github.com Remove deprecated `PlatformMenuBar.body` (flutter/flutter#138509) 2023-11-29 42216813+eliasyishak@users.noreply.github.com Migration for the `sendTiming` events for `package:unified_analytics` (flutter/flutter#138896) 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 rmistry@google.com,stuartmorgan@google.com,tarrinneal@google.com 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
…bled (flutter#137685) fixes [Chips with `onDeleted` callback should show the delete button in the `disabled` state](flutter#136638) ### Code sample <details> <summary>expand to view the code sample</summary> ```dart import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); @OverRide Widget build(BuildContext context) { return const MaterialApp( debugShowCheckedModeBanner: false, home: Example(), ); } } class Example extends StatefulWidget { const Example({super.key}); @OverRide State<Example> createState() => _ExampleState(); } class _ExampleState extends State<Example> { @OverRide Widget build(BuildContext context) { return Scaffold( body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: <Widget>[ RawChip( avatar: const Icon(Icons.favorite_rounded), label: const Text('RawChip'), onSelected: null, isEnabled: false, onDeleted: () {}, ), InputChip( avatar: const Icon(Icons.favorite_rounded), label: const Text('InputChip'), isEnabled: false, onPressed: null, onDeleted: () {}, ), FilterChip( avatar: const Icon(Icons.favorite_rounded), label: const Text('FilterChip'), onSelected: null, onDeleted: () {}, ), ], ), ), ); } } ``` </details> | Before | After | | --------------- | --------------- | | <img src="https://github.com/flutter/flutter/assets/48603081/8bd458de-cfd2-44f0-a0dd-a8298938c61f" /> | <img src="https://github.com/flutter/flutter/assets/48603081/afca0684-b061-416b-b029-5316588c6888" /> |
fixes Chips with
onDeleted
callback should show the delete button in thedisabled
stateCode sample
expand to view the code sample
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.