Apply media padding in ListTile (#13545)

Applies media padding (e.g. iOS safe area insets) around the list tile
children inside the InkWell.

Also adds safe area around gallery section titles for consistency with
surrounding list tiles.
This commit is contained in:
Chris Bracken
2017-12-13 18:39:36 -08:00
committed by GitHub
parent 486aa63b4c
commit 20fb6621eb
4 changed files with 45 additions and 21 deletions

View File

@@ -144,7 +144,11 @@ class GalleryHomeState extends State<GalleryHome> with SingleTickerProviderState
height: 48.0,
padding: const EdgeInsetsDirectional.only(start: 16.0),
alignment: AlignmentDirectional.centerStart,
child: new Text(galleryItem.category, style: headerStyle)
child: new SafeArea(
top: false,
bottom: false,
child: new Text(galleryItem.category, style: headerStyle),
),
),
)
);