chore: Follow up hovermenu
This commit is contained in:
parent
c51fc600a2
commit
f4196f38c3
1 changed files with 20 additions and 17 deletions
|
|
@ -484,7 +484,7 @@ class Message extends StatelessWidget {
|
||||||
Positioned(
|
Positioned(
|
||||||
left: ownMessage ? null : 48,
|
left: ownMessage ? null : 48,
|
||||||
right: ownMessage ? 4 : null,
|
right: ownMessage ? 4 : null,
|
||||||
bottom: showReceiptsRow ? 28 : 0,
|
top: displayTime ? 38 : 0,
|
||||||
child: AnimatedScale(
|
child: AnimatedScale(
|
||||||
duration: Duration(
|
duration: Duration(
|
||||||
milliseconds:
|
milliseconds:
|
||||||
|
|
@ -507,12 +507,30 @@ class Message extends StatelessWidget {
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
|
if (event.room.canSendDefaultMessages)
|
||||||
|
SizedBox(
|
||||||
|
width: 32,
|
||||||
|
height: 32,
|
||||||
|
child: IconButton(
|
||||||
|
icon: Icon(
|
||||||
|
Icons.reply_outlined,
|
||||||
|
size: 16,
|
||||||
|
color: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.onTertiaryContainer,
|
||||||
|
),
|
||||||
|
tooltip: L10n.of(context)!.reply,
|
||||||
|
onPressed: event.room.canSendDefaultMessages
|
||||||
|
? () => onSwipe()
|
||||||
|
: null,
|
||||||
|
),
|
||||||
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 32,
|
width: 32,
|
||||||
height: 32,
|
height: 32,
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
Icons.check_circle_outline_outlined,
|
Icons.more_vert,
|
||||||
size: 16,
|
size: 16,
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.colorScheme
|
.colorScheme
|
||||||
|
|
@ -522,21 +540,6 @@ class Message extends StatelessWidget {
|
||||||
onPressed: () => onSelect(event),
|
onPressed: () => onSelect(event),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
|
||||||
width: 32,
|
|
||||||
height: 32,
|
|
||||||
child: IconButton(
|
|
||||||
icon: Icon(
|
|
||||||
Icons.reply_outlined,
|
|
||||||
size: 16,
|
|
||||||
color: Theme.of(context)
|
|
||||||
.colorScheme
|
|
||||||
.onTertiaryContainer,
|
|
||||||
),
|
|
||||||
tooltip: L10n.of(context)!.reply,
|
|
||||||
onPressed: () => onSwipe(),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue