From 77f71ef48f5d1c7c50774dc862e0688d052cc82f Mon Sep 17 00:00:00 2001 From: Shouichi Kamiya Date: Tue, 10 Sep 2019 10:32:27 +0900 Subject: [PATCH] Center action icons of swipe to dismiss example (#39670) --- .../lib/demo/material/leave_behind_demo.dart | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/flutter_gallery/lib/demo/material/leave_behind_demo.dart b/examples/flutter_gallery/lib/demo/material/leave_behind_demo.dart index 4ab956253e..87e8d3eca5 100644 --- a/examples/flutter_gallery/lib/demo/material/leave_behind_demo.dart +++ b/examples/flutter_gallery/lib/demo/material/leave_behind_demo.dart @@ -245,14 +245,18 @@ class _LeaveBehindListItem extends StatelessWidget { }, background: Container( color: theme.primaryColor, - child: const ListTile( - leading: Icon(Icons.delete, color: Colors.white, size: 36.0), + child: const Center( + child: ListTile( + leading: Icon(Icons.delete, color: Colors.white, size: 36.0), + ), ), ), secondaryBackground: Container( color: theme.primaryColor, - child: const ListTile( - trailing: Icon(Icons.archive, color: Colors.white, size: 36.0), + child: const Center( + child: ListTile( + trailing: Icon(Icons.archive, color: Colors.white, size: 36.0), + ), ), ), child: Container(