chore: Follow up reactions picker
This commit is contained in:
parent
959d75fb9d
commit
f82d26eed1
1 changed files with 161 additions and 166 deletions
|
|
@ -642,10 +642,8 @@ class Message extends StatelessWidget {
|
|||
child: showReactionPicker
|
||||
? Padding(
|
||||
padding:
|
||||
const EdgeInsets.only(
|
||||
top: 4.0,
|
||||
bottom: 4.0,
|
||||
left: 8.0,
|
||||
const EdgeInsets.all(
|
||||
4.0,
|
||||
),
|
||||
child: Material(
|
||||
elevation: 4,
|
||||
|
|
@ -656,6 +654,10 @@ class Message extends StatelessWidget {
|
|||
shadowColor: theme
|
||||
.colorScheme.surface
|
||||
.withAlpha(128),
|
||||
child:
|
||||
SingleChildScrollView(
|
||||
scrollDirection:
|
||||
Axis.horizontal,
|
||||
child: Row(
|
||||
mainAxisSize:
|
||||
MainAxisSize.min,
|
||||
|
|
@ -669,9 +671,9 @@ class Message extends StatelessWidget {
|
|||
EdgeInsets
|
||||
.zero,
|
||||
icon: Center(
|
||||
child: Opacity(
|
||||
opacity:
|
||||
sentReactions
|
||||
child:
|
||||
Opacity(
|
||||
opacity: sentReactions
|
||||
.contains(
|
||||
emoji,
|
||||
)
|
||||
|
|
@ -700,9 +702,7 @@ class Message extends StatelessWidget {
|
|||
onSelect(
|
||||
event,
|
||||
);
|
||||
event
|
||||
.room
|
||||
.sendReaction(
|
||||
event.room.sendReaction(
|
||||
event.eventId,
|
||||
emoji,
|
||||
);
|
||||
|
|
@ -729,7 +729,8 @@ class Message extends StatelessWidget {
|
|||
Scaffold(
|
||||
appBar:
|
||||
AppBar(
|
||||
title: Text(
|
||||
title:
|
||||
Text(
|
||||
L10n.of(context)
|
||||
.customReaction,
|
||||
),
|
||||
|
|
@ -776,24 +777,18 @@ class Message extends StatelessWidget {
|
|||
CategoryViewConfig(
|
||||
initCategory:
|
||||
Category.SMILEYS,
|
||||
backspaceColor: theme
|
||||
.colorScheme
|
||||
.primary,
|
||||
iconColor: theme
|
||||
.colorScheme
|
||||
.primary
|
||||
.withAlpha(
|
||||
backspaceColor:
|
||||
theme.colorScheme.primary,
|
||||
iconColor:
|
||||
theme.colorScheme.primary.withAlpha(
|
||||
128,
|
||||
),
|
||||
iconColorSelected: theme
|
||||
.colorScheme
|
||||
.primary,
|
||||
indicatorColor: theme
|
||||
.colorScheme
|
||||
.primary,
|
||||
backgroundColor: theme
|
||||
.colorScheme
|
||||
.surface,
|
||||
iconColorSelected:
|
||||
theme.colorScheme.primary,
|
||||
indicatorColor:
|
||||
theme.colorScheme.primary,
|
||||
backgroundColor:
|
||||
theme.colorScheme.surface,
|
||||
),
|
||||
skinToneConfig:
|
||||
SkinToneConfig(
|
||||
|
|
@ -803,9 +798,8 @@ class Message extends StatelessWidget {
|
|||
theme.colorScheme.primaryContainer,
|
||||
0.75,
|
||||
)!,
|
||||
indicatorColor: theme
|
||||
.colorScheme
|
||||
.onSurface,
|
||||
indicatorColor:
|
||||
theme.colorScheme.onSurface,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
@ -834,6 +828,7 @@ class Message extends StatelessWidget {
|
|||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
: const SizedBox.shrink(),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue