mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 11:05:10 +00:00
feat: Reply with one button in desktop
This commit is contained in:
parent
1e6a16f3b8
commit
f56758e1c4
1 changed files with 34 additions and 12 deletions
|
@ -476,25 +476,47 @@ 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(
|
||||||
width: 32,
|
mainAxisSize: MainAxisSize.min,
|
||||||
height: 32,
|
children: [
|
||||||
child: IconButton(
|
SizedBox(
|
||||||
icon: Icon(
|
width: 32,
|
||||||
Icons.adaptive.more_outlined,
|
height: 32,
|
||||||
size: 16,
|
child: IconButton(
|
||||||
color:
|
icon: Icon(
|
||||||
Theme.of(context).colorScheme.onTertiaryContainer,
|
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(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue