|
|
|
|
@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:animations/animations.dart';
|
|
|
|
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
|
|
|
|
import 'package:material_symbols_icons/symbols.dart';
|
|
|
|
|
import 'package:matrix/matrix.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:fluffychat/config/app_config.dart';
|
|
|
|
|
@ -111,7 +110,7 @@ class ChatInputRow extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
// #Pangea
|
|
|
|
|
// else
|
|
|
|
|
// SizedBox(
|
|
|
|
|
@ -126,35 +125,23 @@ class ChatInputRow extends StatelessWidget {
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
else
|
|
|
|
|
// Pangea#
|
|
|
|
|
controller.selectedEvents.length == 1
|
|
|
|
|
?
|
|
|
|
|
// #Pangea
|
|
|
|
|
// controller.selectedEvents.first
|
|
|
|
|
// controller.selectedEvents.length == 1
|
|
|
|
|
// ? controller.selectedEvents.first
|
|
|
|
|
// .getDisplayEvent(controller.timeline!)
|
|
|
|
|
// .status
|
|
|
|
|
// .isSent
|
|
|
|
|
// ?
|
|
|
|
|
// Pangea#
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: height,
|
|
|
|
|
child: TextButton(
|
|
|
|
|
onPressed: controller.replyAction,
|
|
|
|
|
child: Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
// #Pangea
|
|
|
|
|
// ? SizedBox(
|
|
|
|
|
// height: height,
|
|
|
|
|
// child: TextButton(
|
|
|
|
|
// onPressed: controller.replyAction,
|
|
|
|
|
// child: Row(
|
|
|
|
|
// children: <Widget>[
|
|
|
|
|
// Text(L10n.of(context).reply),
|
|
|
|
|
// const Icon(Icons.keyboard_arrow_right),
|
|
|
|
|
const Icon(Symbols.reply),
|
|
|
|
|
const SizedBox(width: 6),
|
|
|
|
|
Text(L10n.of(context).reply),
|
|
|
|
|
// Pangea#
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
// #Pangea
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// )
|
|
|
|
|
// : SizedBox(
|
|
|
|
|
// height: height,
|
|
|
|
|
// child: TextButton(
|
|
|
|
|
@ -167,11 +154,12 @@ class ChatInputRow extends StatelessWidget {
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// Pangea#
|
|
|
|
|
: const SizedBox.shrink(),
|
|
|
|
|
// #Pangea
|
|
|
|
|
PangeaReactionsPicker(controller, overlayController),
|
|
|
|
|
// )
|
|
|
|
|
// : const SizedBox.shrink(),
|
|
|
|
|
PangeaReactionsPicker(
|
|
|
|
|
controller,
|
|
|
|
|
overlayController,
|
|
|
|
|
),
|
|
|
|
|
if (controller.selectedEvents.length == 1 &&
|
|
|
|
|
!controller.selectedEvents.first
|
|
|
|
|
.getDisplayEvent(controller.timeline!)
|
|
|
|
|
|