chore: Follow up select events
This commit is contained in:
parent
1a3d7f5b1c
commit
7e4775d8df
1 changed files with 14 additions and 14 deletions
|
|
@ -451,13 +451,12 @@ class Message extends StatelessWidget {
|
||||||
),
|
),
|
||||||
if (hovered || selected)
|
if (hovered || selected)
|
||||||
Positioned(
|
Positioned(
|
||||||
left: ownMessage ? 4 : null,
|
left: 4,
|
||||||
right: ownMessage ? null : 4,
|
|
||||||
bottom: 4,
|
bottom: 4,
|
||||||
child: Material(
|
child: Material(
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.colorScheme
|
.colorScheme
|
||||||
.surfaceVariant
|
.background
|
||||||
.withOpacity(0.9),
|
.withOpacity(0.9),
|
||||||
elevation: Theme.of(context)
|
elevation: Theme.of(context)
|
||||||
.appBarTheme
|
.appBarTheme
|
||||||
|
|
@ -469,28 +468,29 @@ class Message extends StatelessWidget {
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
if (hovered) ...[
|
|
||||||
IconButton(
|
|
||||||
icon: const Icon(
|
|
||||||
Icons.reply_outlined,
|
|
||||||
size: 16,
|
|
||||||
),
|
|
||||||
tooltip: L10n.of(context)!.reply,
|
|
||||||
onPressed: () => onSwipe(),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
selected
|
selected
|
||||||
? Icons.check_circle
|
? Icons.check_circle
|
||||||
: longPressSelect
|
: longPressSelect
|
||||||
? Icons.check_circle_outlined
|
? Icons.check_circle_outlined
|
||||||
: Icons.menu,
|
: Icons.check_circle_outlined,
|
||||||
size: 16,
|
size: 16,
|
||||||
),
|
),
|
||||||
tooltip: L10n.of(context)!.select,
|
tooltip: L10n.of(context)!.select,
|
||||||
onPressed: () => onSelect(event),
|
onPressed: () => onSelect(event),
|
||||||
),
|
),
|
||||||
|
if (hovered) ...[
|
||||||
|
if (event.room.canSendDefaultMessages)
|
||||||
|
IconButton(
|
||||||
|
icon: const Icon(
|
||||||
|
Icons.reply_outlined,
|
||||||
|
size: 16,
|
||||||
|
),
|
||||||
|
tooltip: L10n.of(context)!.reply,
|
||||||
|
onPressed: () => onSwipe(),
|
||||||
|
),
|
||||||
|
],
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue