mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:15:09 +00:00
fix: use correct icons for chat pin/unpin
Similarly to the read/unread toggle this was also using the wrong icon. If any selected room is not favourite, then show the pin icon (which should represent the "mark as favourite" action as it corresponds to the filled pin shown next to a favourited room. Otherwise show the outline icon, representing the "unpin" action.
This commit is contained in:
parent
3e4bbc4b2f
commit
bc68a4faaa
1 changed files with 2 additions and 2 deletions
|
@ -147,8 +147,8 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
|
|||
tooltip: L10n.of(context)!.toggleFavorite,
|
||||
icon: Icon(
|
||||
controller.anySelectedRoomNotFavorite
|
||||
? Icons.push_pin_outlined
|
||||
: Icons.push_pin,
|
||||
? Icons.push_pin
|
||||
: Icons.push_pin_outlined,
|
||||
),
|
||||
onPressed: controller.toggleFavouriteRoom,
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue