ui: Add icon on swipe
This commit is contained in:
parent
e4500514ec
commit
b3a26d9a49
@ -43,7 +43,19 @@ class ConversationsPage extends StatelessWidget {
|
||||
return Dismissible(
|
||||
key: ValueKey("conversation;" + item.jid),
|
||||
onDismissed: (direction) => viewModel.closeConversation(item),
|
||||
background: Container(color: Colors.red),
|
||||
background: Container(
|
||||
color: Colors.red,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(16.0),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(Icons.delete),
|
||||
Spacer(),
|
||||
Icon(Icons.delete)
|
||||
]
|
||||
)
|
||||
)
|
||||
),
|
||||
child: InkWell(
|
||||
onTap: () => viewModel.goToConversation(item.jid),
|
||||
child: ConversationsListRow(
|
||||
|
Loading…
Reference in New Issue
Block a user