Skip to content

Conversation

@gspencergoog
Copy link
Contributor

@gspencergoog gspencergoog commented Sep 28, 2021

Description

This adjusts the size of the delete button so that it takes up just slightly less than half of the chip, so that legacy tests that tap on the center of the chip still hit the chip, and not the delete button.

A follow-on change for #90531

Tests

  • Adds a test to make sure that hitting the center of a small chip still triggers the chip and not the delete button.

@google-cla google-cla bot added the cla: yes label Sep 28, 2021
@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Sep 28, 2021
Copy link
Contributor

@darrenaustin darrenaustin left a comment

Choose a reason for hiding this comment

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

LGTM.

child: Column(
children: <Widget>[
Chip(
key: chipKey,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why was this key needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So I could print some values in the debug output that is no longer there. :-)

Removed.

@gspencergoog gspencergoog merged commit 777463c into flutter:master Sep 28, 2021
@gspencergoog gspencergoog deleted the fix_chip branch September 28, 2021 21:20
clocksmith pushed a commit to clocksmith/flutter that referenced this pull request Oct 29, 2021
…p. (flutter#90845)

This adjusts the size of the delete button so that it takes up just slightly less than half of the chip, so that legacy tests that tap on the center of the chip still hit the chip, and not the delete button.

A follow-on change for flutter#90531
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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