|
|
|
|
@ -1,13 +1,7 @@
|
|
|
|
|
// Flutter imports:
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
// Package imports:
|
|
|
|
|
import 'package:badges/badges.dart';
|
|
|
|
|
import 'package:desktop_drop/desktop_drop.dart';
|
|
|
|
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
|
|
|
|
import 'package:future_loading_dialog/future_loading_dialog.dart';
|
|
|
|
|
import 'package:matrix/matrix.dart';
|
|
|
|
|
|
|
|
|
|
// Project imports:
|
|
|
|
|
import 'package:fluffychat/config/app_config.dart';
|
|
|
|
|
import 'package:fluffychat/config/themes.dart';
|
|
|
|
|
@ -27,6 +21,11 @@ import 'package:fluffychat/widgets/chat_settings_popup_menu.dart';
|
|
|
|
|
import 'package:fluffychat/widgets/connection_status_header.dart';
|
|
|
|
|
import 'package:fluffychat/widgets/matrix.dart';
|
|
|
|
|
import 'package:fluffychat/widgets/unread_rooms_badge.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
|
|
|
|
import 'package:future_loading_dialog/future_loading_dialog.dart';
|
|
|
|
|
import 'package:matrix/matrix.dart';
|
|
|
|
|
|
|
|
|
|
import '../../utils/stream_extension.dart';
|
|
|
|
|
import 'chat_emoji_picker.dart';
|
|
|
|
|
import 'chat_input_row.dart';
|
|
|
|
|
@ -90,17 +89,19 @@ class ChatView extends StatelessWidget {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
itemBuilder: (context) => [
|
|
|
|
|
PopupMenuItem(
|
|
|
|
|
value: _EventContextAction.info,
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
const Icon(Icons.info_outlined),
|
|
|
|
|
const SizedBox(width: 12),
|
|
|
|
|
Text(L10n.of(context)!.messageInfo),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// #Pangea
|
|
|
|
|
// PopupMenuItem(
|
|
|
|
|
// value: _EventContextAction.info,
|
|
|
|
|
// child: Row(
|
|
|
|
|
// mainAxisSize: MainAxisSize.min,
|
|
|
|
|
// children: [
|
|
|
|
|
// const Icon(Icons.info_outlined),
|
|
|
|
|
// const SizedBox(width: 12),
|
|
|
|
|
// Text(L10n.of(context)!.messageInfo),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// Pangea#
|
|
|
|
|
if (controller.selectedEvents.single.status.isSent)
|
|
|
|
|
PopupMenuItem(
|
|
|
|
|
value: _EventContextAction.report,
|
|
|
|
|
|