Skip to content

Commit

Permalink
Post submit review changes for chip (flutter#15835)
Browse files Browse the repository at this point in the history
  • Loading branch information
gspencergoog authored Mar 25, 2018
1 parent e916839 commit a6d8ca2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions packages/flutter/lib/src/material/chip.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const double _kEdgePadding = 4.0;
/// * [CircleAvatar], which shows images or initials of people.
/// * <https://material.google.com/components/chips.html>
class Chip extends StatelessWidget {
/// Creates a material design chip
/// Creates a material design chip.
///
/// The [label] and [border] arguments may not be null.
const Chip({
Expand Down Expand Up @@ -714,6 +714,14 @@ class _RenderChip extends RenderBox {
}
}

doPaint(container);
doPaint(avatar);
doPaint(deleteIcon);
doPaint(label);
}

@override
void debugPaint(PaintingContext context, Offset offset) {
assert(!_debugShowTapTargetOutlines ||
() {
// Draws a rect around the tap targets to help with visualizing where
Expand All @@ -731,11 +739,6 @@ class _RenderChip extends RenderBox {
);
return true;
}());

doPaint(container);
doPaint(avatar);
doPaint(deleteIcon);
doPaint(label);
}

@override
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter/lib/src/material/tooltip.dart
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ class _TooltipState extends State<Tooltip> with SingleTickerProviderStateMixin {

@override
void deactivate() {
super.deactivate();
if (_entry != null)
_controller.reverse();
super.deactivate();
}

@override
Expand Down

0 comments on commit a6d8ca2

Please sign in to comment.