From f56758e1c421ffa55bb3987321b6451ca28de816 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Fri, 1 Mar 2024 19:51:13 +0100 Subject: [PATCH] feat: Reply with one button in desktop --- lib/pages/chat/events/message.dart | 46 ++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 12 deletions(-) diff --git a/lib/pages/chat/events/message.dart b/lib/pages/chat/events/message.dart index 7619ec42..5c52d362 100644 --- a/lib/pages/chat/events/message.dart +++ b/lib/pages/chat/events/message.dart @@ -476,25 +476,47 @@ class Message extends StatelessWidget { child: Material( color: Theme.of(context) .colorScheme - .tertiaryContainer + .secondaryContainer .withOpacity(0.9), elevation: Theme.of(context).appBarTheme.scrolledUnderElevation ?? 4, borderRadius: BorderRadius.circular(AppConfig.borderRadius), shadowColor: Theme.of(context).appBarTheme.shadowColor, - child: SizedBox( - width: 32, - height: 32, - child: IconButton( - icon: Icon( - Icons.adaptive.more_outlined, - size: 16, - color: - Theme.of(context).colorScheme.onTertiaryContainer, + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + SizedBox( + width: 32, + height: 32, + child: IconButton( + icon: Icon( + Icons.check_circle_outline_outlined, + size: 16, + color: Theme.of(context) + .colorScheme + .onTertiaryContainer, + ), + tooltip: L10n.of(context)!.select, + 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(), + ), + ), + ], ), ), ),