Skip to content

Commit 11341f2

Browse files
committed
fix: chat message multi select revert
1 parent f812f0a commit 11341f2

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

lib/pages/chat/events/message.dart

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import 'package:fluffychat/utils/date_time_extension.dart';
1111
import 'package:fluffychat/utils/file_description.dart';
1212
import 'package:fluffychat/utils/matrix_sdk_extensions/matrix_locals.dart';
1313
import 'package:fluffychat/utils/native_mac/mac_haptic.dart';
14-
import 'package:fluffychat/utils/platform_infos.dart';
1514
import 'package:fluffychat/utils/room_status_extension.dart';
1615
import 'package:fluffychat/utils/string_color.dart';
1716
import 'package:fluffychat/widgets/avatar.dart';
@@ -295,19 +294,16 @@ class Message extends StatelessWidget {
295294
bottom: 0,
296295
left: 0,
297296
right: 0,
298-
child: IgnorePointer(
299-
ignoring: !longPressSelect && (PlatformInfos.isDesktop || PlatformInfos.isWeb),
300-
child: InkWell(
301-
hoverColor: longPressSelect ? Colors.transparent : null,
302-
enableFeedback: !selected,
303-
onTap: longPressSelect ? null : () => onSelect(event),
297+
child: InkWell(
298+
hoverColor: longPressSelect ? Colors.transparent : null,
299+
enableFeedback: !selected,
300+
onTap: longPressSelect ? null : () => onSelect(event),
301+
borderRadius: BorderRadius.circular(AppConfig.borderRadius / 2),
302+
child: Material(
304303
borderRadius: BorderRadius.circular(AppConfig.borderRadius / 2),
305-
child: Material(
306-
borderRadius: BorderRadius.circular(AppConfig.borderRadius / 2),
307-
color: selected || highlightMarker
308-
? theme.colorScheme.secondaryContainer.withAlpha(128)
309-
: Colors.transparent,
310-
),
304+
color: selected || highlightMarker
305+
? theme.colorScheme.secondaryContainer.withAlpha(128)
306+
: Colors.transparent,
311307
),
312308
),
313309
),

0 commit comments

Comments
 (0)