feat: Reply with one button in desktop

This commit is contained in:
krille-chan 2024-03-01 19:51:13 +01:00
parent 1e6a16f3b8
commit f56758e1c4
No known key found for this signature in database

View file

@ -476,26 +476,48 @@ class Message extends StatelessWidget {
child: Material( child: Material(
color: Theme.of(context) color: Theme.of(context)
.colorScheme .colorScheme
.tertiaryContainer .secondaryContainer
.withOpacity(0.9), .withOpacity(0.9),
elevation: elevation:
Theme.of(context).appBarTheme.scrolledUnderElevation ?? Theme.of(context).appBarTheme.scrolledUnderElevation ??
4, 4,
borderRadius: BorderRadius.circular(AppConfig.borderRadius), borderRadius: BorderRadius.circular(AppConfig.borderRadius),
shadowColor: Theme.of(context).appBarTheme.shadowColor, shadowColor: Theme.of(context).appBarTheme.shadowColor,
child: SizedBox( child: Row(
mainAxisSize: MainAxisSize.min,
children: [
SizedBox(
width: 32, width: 32,
height: 32, height: 32,
child: IconButton( child: IconButton(
icon: Icon( icon: Icon(
Icons.adaptive.more_outlined, Icons.check_circle_outline_outlined,
size: 16, size: 16,
color: color: Theme.of(context)
Theme.of(context).colorScheme.onTertiaryContainer, .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(),
),
),
],
),
), ),
), ),
), ),