|
|
|
@ -155,11 +155,14 @@ class ChatListItem extends StatelessWidget {
|
|
|
|
|
? 20.0
|
|
|
|
|
: 14.0
|
|
|
|
|
: 0.0;
|
|
|
|
|
return ListTile(
|
|
|
|
|
selected: selected || activeChat,
|
|
|
|
|
selectedTileColor: selected
|
|
|
|
|
return Material(
|
|
|
|
|
color: selected
|
|
|
|
|
? Theme.of(context).primaryColor.withAlpha(100)
|
|
|
|
|
: Theme.of(context).secondaryHeaderColor,
|
|
|
|
|
: activeChat
|
|
|
|
|
? Theme.of(context).secondaryHeaderColor
|
|
|
|
|
: Colors.transparent,
|
|
|
|
|
child: ListTile(
|
|
|
|
|
selected: selected || activeChat,
|
|
|
|
|
onLongPress: onLongPress as void Function()?,
|
|
|
|
|
leading: selected
|
|
|
|
|
? SizedBox(
|
|
|
|
@ -321,6 +324,7 @@ class ChatListItem extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
onTap: () => clickAction(context),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|