|
|
|
|
@ -13,11 +13,8 @@ class ChatEmojiPicker extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
final ThemeData theme = Theme.of(context);
|
|
|
|
|
// #Pangea
|
|
|
|
|
return Material(
|
|
|
|
|
// Pangea#
|
|
|
|
|
child: AnimatedContainer(
|
|
|
|
|
final theme = Theme.of(context);
|
|
|
|
|
return AnimatedContainer(
|
|
|
|
|
duration: FluffyThemes.animationDuration,
|
|
|
|
|
curve: FluffyThemes.animationCurve,
|
|
|
|
|
clipBehavior: Clip.hardEdge,
|
|
|
|
|
@ -49,8 +46,57 @@ class ChatEmojiPicker extends StatelessWidget {
|
|
|
|
|
.colorScheme
|
|
|
|
|
.onInverseSurface,
|
|
|
|
|
),
|
|
|
|
|
bottomActionBarConfig:
|
|
|
|
|
const BottomActionBarConfig(
|
|
|
|
|
bottomActionBarConfig: const BottomActionBarConfig(
|
|
|
|
|
enabled: false,
|
|
|
|
|
),
|
|
|
|
|
categoryViewConfig: CategoryViewConfig(
|
|
|
|
|
backspaceColor: theme.colorScheme.primary,
|
|
|
|
|
iconColor:
|
|
|
|
|
theme.colorScheme.primary.withOpacity(0.5),
|
|
|
|
|
iconColorSelected: theme.colorScheme.primary,
|
|
|
|
|
indicatorColor: theme.colorScheme.primary,
|
|
|
|
|
),
|
|
|
|
|
skinToneConfig: SkinToneConfig(
|
|
|
|
|
dialogBackgroundColor: Color.lerp(
|
|
|
|
|
theme.colorScheme.surface,
|
|
|
|
|
theme.colorScheme.primaryContainer,
|
|
|
|
|
0.75,
|
|
|
|
|
)!,
|
|
|
|
|
indicatorColor: theme.colorScheme.onSurface,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
StickerPickerDialog(
|
|
|
|
|
room: controller.room,
|
|
|
|
|
onSelected: (sticker) {
|
|
|
|
|
controller.room.sendEvent(
|
|
|
|
|
{
|
|
|
|
|
'body': sticker.body,
|
|
|
|
|
'info': sticker.info ?? {},
|
|
|
|
|
'url': sticker.url.toString(),
|
|
|
|
|
},
|
|
|
|
|
type: EventTypes.Sticker,
|
|
|
|
|
);
|
|
|
|
|
controller.hideEmojiPicker();
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: TabBarView(
|
|
|
|
|
children: [
|
|
|
|
|
EmojiPicker(
|
|
|
|
|
onEmojiSelected: controller.onEmojiSelected,
|
|
|
|
|
onBackspacePressed: controller.emojiPickerBackspace,
|
|
|
|
|
config: Config(
|
|
|
|
|
emojiViewConfig: EmojiViewConfig(
|
|
|
|
|
noRecents: const NoRecent(),
|
|
|
|
|
backgroundColor: Theme.of(context)
|
|
|
|
|
.colorScheme
|
|
|
|
|
.onInverseSurface,
|
|
|
|
|
),
|
|
|
|
|
bottomActionBarConfig: const BottomActionBarConfig(
|
|
|
|
|
enabled: false,
|
|
|
|
|
),
|
|
|
|
|
categoryViewConfig: CategoryViewConfig(
|
|
|
|
|
@ -102,7 +148,6 @@ class ChatEmojiPicker extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|