mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-24 18:20:43 +01:00
design: Move pinned icon in title
This commit is contained in:
parent
a314508ca4
commit
3abe6c2ac1
@ -184,6 +184,16 @@ class ChatListItem extends StatelessWidget {
|
|||||||
size: 16,
|
size: 16,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
if (room.isFavourite)
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(
|
||||||
|
right: room.notificationCount > 0 ? 4.0 : 0.0),
|
||||||
|
child: Icon(
|
||||||
|
Icons.push_pin_outlined,
|
||||||
|
size: 16,
|
||||||
|
color: Theme.of(context).colorScheme.secondary,
|
||||||
|
),
|
||||||
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(left: 4.0),
|
padding: const EdgeInsets.only(left: 4.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
@ -271,16 +281,6 @@ class ChatListItem extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(width: 8),
|
SizedBox(width: 8),
|
||||||
if (room.isFavourite)
|
|
||||||
Padding(
|
|
||||||
padding: EdgeInsets.only(
|
|
||||||
right: room.notificationCount > 0 ? 4.0 : 0.0),
|
|
||||||
child: Icon(
|
|
||||||
Icons.push_pin_outlined,
|
|
||||||
size: 20,
|
|
||||||
color: Theme.of(context).colorScheme.secondary,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
AnimatedContainer(
|
AnimatedContainer(
|
||||||
duration: Duration(milliseconds: 300),
|
duration: Duration(milliseconds: 300),
|
||||||
curve: Curves.bounceInOut,
|
curve: Curves.bounceInOut,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user