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:
@@ -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),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user