|
|
@ -12,20 +12,17 @@ class ReactionsPicker extends StatelessWidget {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
if (controller.showEmojiPicker) return Container();
|
|
|
|
if (controller.showEmojiPicker) return Container();
|
|
|
|
|
|
|
|
final display = controller.editEvent == null &&
|
|
|
|
|
|
|
|
controller.replyEvent == null &&
|
|
|
|
|
|
|
|
controller.room.canSendDefaultMessages &&
|
|
|
|
|
|
|
|
controller.selectedEvents.isNotEmpty;
|
|
|
|
return AnimatedContainer(
|
|
|
|
return AnimatedContainer(
|
|
|
|
duration: const Duration(milliseconds: 300),
|
|
|
|
duration: const Duration(milliseconds: 300),
|
|
|
|
height: (controller.editEvent == null &&
|
|
|
|
height: (display) ? 56 : 0,
|
|
|
|
controller.replyEvent == null &&
|
|
|
|
|
|
|
|
controller.room.canSendDefaultMessages &&
|
|
|
|
|
|
|
|
controller.selectedEvents.length == 1)
|
|
|
|
|
|
|
|
? 56
|
|
|
|
|
|
|
|
: 0,
|
|
|
|
|
|
|
|
child: Material(
|
|
|
|
child: Material(
|
|
|
|
color: Theme.of(context).secondaryHeaderColor,
|
|
|
|
color: Theme.of(context).secondaryHeaderColor,
|
|
|
|
child: Builder(builder: (context) {
|
|
|
|
child: Builder(builder: (context) {
|
|
|
|
if (!(controller.editEvent == null &&
|
|
|
|
if (!display) {
|
|
|
|
controller.replyEvent == null &&
|
|
|
|
|
|
|
|
controller.selectedEvents.length == 1)) {
|
|
|
|
|
|
|
|
return Container();
|
|
|
|
return Container();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
final emojis = List<String>.from(AppEmojis.emojis);
|
|
|
|
final emojis = List<String>.from(AppEmojis.emojis);
|
|
|
|