Commit 77f71ef4 authored by Shouichi Kamiya's avatar Shouichi Kamiya Committed by Hans Muller

Center action icons of swipe to dismiss example (#39670)

parent 4c254e5e
...@@ -245,14 +245,18 @@ class _LeaveBehindListItem extends StatelessWidget { ...@@ -245,14 +245,18 @@ class _LeaveBehindListItem extends StatelessWidget {
}, },
background: Container( background: Container(
color: theme.primaryColor, color: theme.primaryColor,
child: const ListTile( child: const Center(
leading: Icon(Icons.delete, color: Colors.white, size: 36.0), child: ListTile(
leading: Icon(Icons.delete, color: Colors.white, size: 36.0),
),
), ),
), ),
secondaryBackground: Container( secondaryBackground: Container(
color: theme.primaryColor, color: theme.primaryColor,
child: const ListTile( child: const Center(
trailing: Icon(Icons.archive, color: Colors.white, size: 36.0), child: ListTile(
trailing: Icon(Icons.archive, color: Colors.white, size: 36.0),
),
), ),
), ),
child: Container( child: Container(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment