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