|
|
@ -9,10 +9,12 @@ import 'package:fluffychat/pages/chat_details/chat_details.dart';
|
|
|
|
import 'package:fluffychat/pages/chat_details/participant_list_item.dart';
|
|
|
|
import 'package:fluffychat/pages/chat_details/participant_list_item.dart';
|
|
|
|
import 'package:fluffychat/utils/fluffy_share.dart';
|
|
|
|
import 'package:fluffychat/utils/fluffy_share.dart';
|
|
|
|
import 'package:fluffychat/utils/matrix_sdk_extensions/matrix_locals.dart';
|
|
|
|
import 'package:fluffychat/utils/matrix_sdk_extensions/matrix_locals.dart';
|
|
|
|
|
|
|
|
import 'package:fluffychat/utils/show_scaffold_dialog.dart';
|
|
|
|
import 'package:fluffychat/widgets/avatar.dart';
|
|
|
|
import 'package:fluffychat/widgets/avatar.dart';
|
|
|
|
import 'package:fluffychat/widgets/chat_settings_popup_menu.dart';
|
|
|
|
import 'package:fluffychat/widgets/chat_settings_popup_menu.dart';
|
|
|
|
import 'package:fluffychat/widgets/layouts/max_width_body.dart';
|
|
|
|
import 'package:fluffychat/widgets/layouts/max_width_body.dart';
|
|
|
|
import 'package:fluffychat/widgets/matrix.dart';
|
|
|
|
import 'package:fluffychat/widgets/matrix.dart';
|
|
|
|
|
|
|
|
import 'package:fluffychat/widgets/share_scaffold_dialog.dart';
|
|
|
|
import '../../utils/url_launcher.dart';
|
|
|
|
import '../../utils/url_launcher.dart';
|
|
|
|
import '../../widgets/qr_code_viewer.dart';
|
|
|
|
import '../../widgets/qr_code_viewer.dart';
|
|
|
|
|
|
|
|
|
|
|
@ -57,7 +59,18 @@ class ChatDetailsView extends StatelessWidget {
|
|
|
|
const Center(child: BackButton()),
|
|
|
|
const Center(child: BackButton()),
|
|
|
|
elevation: theme.appBarTheme.elevation,
|
|
|
|
elevation: theme.appBarTheme.elevation,
|
|
|
|
actions: <Widget>[
|
|
|
|
actions: <Widget>[
|
|
|
|
if (room.canonicalAlias.isNotEmpty)
|
|
|
|
if (room.canonicalAlias.isNotEmpty) ...[
|
|
|
|
|
|
|
|
IconButton(
|
|
|
|
|
|
|
|
onPressed: () {
|
|
|
|
|
|
|
|
showScaffoldDialog(
|
|
|
|
|
|
|
|
context: context,
|
|
|
|
|
|
|
|
builder: (context) => ShareScaffoldDialog(
|
|
|
|
|
|
|
|
items: [TextShareItem(room.canonicalAlias)],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
icon: const Icon(Icons.forward_outlined),
|
|
|
|
|
|
|
|
),
|
|
|
|
IconButton(
|
|
|
|
IconButton(
|
|
|
|
tooltip: L10n.of(context).share,
|
|
|
|
tooltip: L10n.of(context).share,
|
|
|
|
icon: const Icon(Icons.qr_code_rounded),
|
|
|
|
icon: const Icon(Icons.qr_code_rounded),
|
|
|
@ -66,6 +79,7 @@ class ChatDetailsView extends StatelessWidget {
|
|
|
|
room.canonicalAlias,
|
|
|
|
room.canonicalAlias,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
if (controller.widget.embeddedCloseButton == null)
|
|
|
|
if (controller.widget.embeddedCloseButton == null)
|
|
|
|
ChatSettingsPopupMenu(room, false),
|
|
|
|
ChatSettingsPopupMenu(room, false),
|
|
|
|
],
|
|
|
|
],
|
|
|
|