|
|
|
@ -2,14 +2,11 @@ import 'package:animations/animations.dart';
|
|
|
|
import 'package:fluffychat/config/app_config.dart';
|
|
|
|
import 'package:fluffychat/config/app_config.dart';
|
|
|
|
import 'package:fluffychat/pangea/choreographer/widgets/it_bar.dart';
|
|
|
|
import 'package:fluffychat/pangea/choreographer/widgets/it_bar.dart';
|
|
|
|
import 'package:fluffychat/pangea/choreographer/widgets/send_button.dart';
|
|
|
|
import 'package:fluffychat/pangea/choreographer/widgets/send_button.dart';
|
|
|
|
import 'package:fluffychat/pangea/widgets/chat/message_actions.dart';
|
|
|
|
|
|
|
|
import 'package:fluffychat/utils/platform_infos.dart';
|
|
|
|
import 'package:fluffychat/utils/platform_infos.dart';
|
|
|
|
import 'package:fluffychat/widgets/avatar.dart';
|
|
|
|
import 'package:fluffychat/widgets/avatar.dart';
|
|
|
|
import 'package:fluffychat/widgets/matrix.dart';
|
|
|
|
import 'package:fluffychat/widgets/matrix.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
|
|
|
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
|
|
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
|
|
|
import 'package:keyboard_shortcuts/keyboard_shortcuts.dart';
|
|
|
|
|
|
|
|
import 'package:matrix/matrix.dart';
|
|
|
|
import 'package:matrix/matrix.dart';
|
|
|
|
|
|
|
|
|
|
|
|
import '../../config/themes.dart';
|
|
|
|
import '../../config/themes.dart';
|
|
|
|
@ -103,15 +100,18 @@ class ChatInputRow extends StatelessWidget {
|
|
|
|
: const SizedBox.shrink(),
|
|
|
|
: const SizedBox.shrink(),
|
|
|
|
]
|
|
|
|
]
|
|
|
|
: <Widget>[
|
|
|
|
: <Widget>[
|
|
|
|
KeyBoardShortcuts(
|
|
|
|
// #Pangea
|
|
|
|
keysToPress: {
|
|
|
|
// KeyBoardShortcuts(
|
|
|
|
LogicalKeyboardKey.altLeft,
|
|
|
|
// keysToPress: {
|
|
|
|
LogicalKeyboardKey.keyA,
|
|
|
|
// LogicalKeyboardKey.altLeft,
|
|
|
|
},
|
|
|
|
// LogicalKeyboardKey.keyA,
|
|
|
|
onKeysPressed: () =>
|
|
|
|
// },
|
|
|
|
controller.onAddPopupMenuButtonSelected('file'),
|
|
|
|
// onKeysPressed: () =>
|
|
|
|
helpLabel: L10n.of(context)!.sendFile,
|
|
|
|
// controller.onAddPopupMenuButtonSelected('file'),
|
|
|
|
child: AnimatedContainer(
|
|
|
|
// helpLabel: L10n.of(context)!.sendFile,
|
|
|
|
|
|
|
|
// child:
|
|
|
|
|
|
|
|
// Pangea#
|
|
|
|
|
|
|
|
AnimatedContainer(
|
|
|
|
duration: FluffyThemes.animationDuration,
|
|
|
|
duration: FluffyThemes.animationDuration,
|
|
|
|
curve: FluffyThemes.animationCurve,
|
|
|
|
curve: FluffyThemes.animationCurve,
|
|
|
|
height: 56,
|
|
|
|
height: 56,
|
|
|
|
@ -235,18 +235,24 @@ class ChatInputRow extends StatelessWidget {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// #Pangea
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// Pangea#
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
height: 56,
|
|
|
|
height: 56,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: KeyBoardShortcuts(
|
|
|
|
child:
|
|
|
|
keysToPress: {
|
|
|
|
// #Pangea
|
|
|
|
LogicalKeyboardKey.altLeft,
|
|
|
|
// KeyBoardShortcuts(
|
|
|
|
LogicalKeyboardKey.keyE,
|
|
|
|
// keysToPress: {
|
|
|
|
},
|
|
|
|
// LogicalKeyboardKey.altLeft,
|
|
|
|
onKeysPressed: controller.emojiPickerAction,
|
|
|
|
// LogicalKeyboardKey.keyE,
|
|
|
|
helpLabel: L10n.of(context)!.emojis,
|
|
|
|
// },
|
|
|
|
child: IconButton(
|
|
|
|
// onKeysPressed: controller.emojiPickerAction,
|
|
|
|
|
|
|
|
// helpLabel: L10n.of(context)!.emojis,
|
|
|
|
|
|
|
|
// child:
|
|
|
|
|
|
|
|
// Pangea#
|
|
|
|
|
|
|
|
IconButton(
|
|
|
|
tooltip: L10n.of(context)!.emojis,
|
|
|
|
tooltip: L10n.of(context)!.emojis,
|
|
|
|
icon: PageTransitionSwitcher(
|
|
|
|
icon: PageTransitionSwitcher(
|
|
|
|
transitionBuilder: (
|
|
|
|
transitionBuilder: (
|
|
|
|
@ -271,7 +277,9 @@ class ChatInputRow extends StatelessWidget {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
onPressed: controller.emojiPickerAction,
|
|
|
|
onPressed: controller.emojiPickerAction,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// #Pangea
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// Pangea#
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// #Pangea
|
|
|
|
// #Pangea
|
|
|
|
// if (Matrix.of(context).isMultiAccount &&
|
|
|
|
// if (Matrix.of(context).isMultiAccount &&
|
|
|
|
|