mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 06:52:35 +01:00
chore: Follow up fix listtile select color
This commit is contained in:
parent
3d7a82a8d2
commit
95c8301d99
@ -155,11 +155,14 @@ class ChatListItem extends StatelessWidget {
|
|||||||
? 20.0
|
? 20.0
|
||||||
: 14.0
|
: 14.0
|
||||||
: 0.0;
|
: 0.0;
|
||||||
return ListTile(
|
return Material(
|
||||||
selected: selected || activeChat,
|
color: selected
|
||||||
selectedTileColor: selected
|
|
||||||
? Theme.of(context).primaryColor.withAlpha(100)
|
? 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()?,
|
onLongPress: onLongPress as void Function()?,
|
||||||
leading: selected
|
leading: selected
|
||||||
? SizedBox(
|
? SizedBox(
|
||||||
@ -321,6 +324,7 @@ class ChatListItem extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
onTap: () => clickAction(context),
|
onTap: () => clickAction(context),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user