From ab614847f7d40b44c9b3e30922d8d6e6a9964608 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Fri, 1 Jan 2016 16:17:01 -0800 Subject: [PATCH] Ink well in ListItem doesn't fill MaterialList We need to put the padding on the inside of the list item. Fixes #1055 --- packages/flutter/lib/src/material/list_item.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/flutter/lib/src/material/list_item.dart b/packages/flutter/lib/src/material/list_item.dart index 0352f301ab..f711019868 100644 --- a/packages/flutter/lib/src/material/list_item.dart +++ b/packages/flutter/lib/src/material/list_item.dart @@ -46,11 +46,11 @@ class ListItem extends StatelessComponent { )); } - return new Padding( - padding: const EdgeDims.symmetric(horizontal: 16.0), - child: new InkWell( - onTap: onTap, - onLongPress: onLongPress, + return new InkWell( + onTap: onTap, + onLongPress: onLongPress, + child: new Padding( + padding: const EdgeDims.symmetric(horizontal: 16.0), child: new Row(children) ) );