fix(ui): remove deprecated showReactionPickerTail parameter in StreamMessageWidget
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
- Removed deprecated `showConfirmationDialog` method. Use `showConfirmationBottomSheet` instead.
|
- Removed deprecated `showConfirmationDialog` method. Use `showConfirmationBottomSheet` instead.
|
||||||
- Removed deprecated `showInfoDialog` method. Use `showInfoBottomSheet` instead.
|
- Removed deprecated `showInfoDialog` method. Use `showInfoBottomSheet` instead.
|
||||||
- Removed deprecated `wrapAttachmentWidget` method. Use `WrapAttachmentWidget` class instead.
|
- Removed deprecated `wrapAttachmentWidget` method. Use `WrapAttachmentWidget` class instead.
|
||||||
|
- Removed deprecated `showReactionPickerTail` parameter. Use `showReactionPicker` instead.
|
||||||
|
|
||||||
✅ Added
|
✅ Added
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import 'package:contextmenu/contextmenu.dart';
|
|||||||
import 'package:flutter/material.dart' hide ButtonStyle;
|
import 'package:flutter/material.dart' hide ButtonStyle;
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_portal/flutter_portal.dart';
|
import 'package:flutter_portal/flutter_portal.dart';
|
||||||
import 'package:meta/meta.dart';
|
|
||||||
import 'package:stream_chat_flutter/conditional_parent_builder/conditional_parent_builder.dart';
|
import 'package:stream_chat_flutter/conditional_parent_builder/conditional_parent_builder.dart';
|
||||||
import 'package:stream_chat_flutter/platform_widget_builder/platform_widget_builder.dart';
|
import 'package:stream_chat_flutter/platform_widget_builder/platform_widget_builder.dart';
|
||||||
import 'package:stream_chat_flutter/src/attachment/builder/attachment_widget_builder.dart';
|
import 'package:stream_chat_flutter/src/attachment/builder/attachment_widget_builder.dart';
|
||||||
@@ -57,7 +56,6 @@ class StreamMessageWidget extends StatefulWidget {
|
|||||||
this.onReactionsTap,
|
this.onReactionsTap,
|
||||||
this.onReactionsHover,
|
this.onReactionsHover,
|
||||||
this.showReactionPicker = true,
|
this.showReactionPicker = true,
|
||||||
@internal this.showReactionPickerTail = false,
|
|
||||||
this.showUserAvatar = DisplayWidget.show,
|
this.showUserAvatar = DisplayWidget.show,
|
||||||
this.showSendingIndicator = true,
|
this.showSendingIndicator = true,
|
||||||
this.showThreadReplyIndicator = false,
|
this.showThreadReplyIndicator = false,
|
||||||
@@ -400,13 +398,6 @@ class StreamMessageWidget extends StatefulWidget {
|
|||||||
/// {@endtemplate}
|
/// {@endtemplate}
|
||||||
final bool showReactionPicker;
|
final bool showReactionPicker;
|
||||||
|
|
||||||
/// {@template showReactionPickerTail}
|
|
||||||
/// Whether or not to show the reaction picker tail
|
|
||||||
/// {@endtemplate}
|
|
||||||
@internal
|
|
||||||
@Deprecated('Use `showReactionPicker` instead')
|
|
||||||
final bool? showReactionPickerTail;
|
|
||||||
|
|
||||||
/// {@template onShowMessage}
|
/// {@template onShowMessage}
|
||||||
/// Callback when show message is tapped
|
/// Callback when show message is tapped
|
||||||
/// {@endtemplate}
|
/// {@endtemplate}
|
||||||
@@ -559,7 +550,6 @@ class StreamMessageWidget extends StatefulWidget {
|
|||||||
void Function(String)? onLinkTap,
|
void Function(String)? onLinkTap,
|
||||||
bool? showReactionBrowser,
|
bool? showReactionBrowser,
|
||||||
bool? showReactionPicker,
|
bool? showReactionPicker,
|
||||||
@internal bool? showReactionPickerTail,
|
|
||||||
List<Read>? readList,
|
List<Read>? readList,
|
||||||
ShowMessageCallback? onShowMessage,
|
ShowMessageCallback? onShowMessage,
|
||||||
bool? showUsername,
|
bool? showUsername,
|
||||||
@@ -621,8 +611,6 @@ class StreamMessageWidget extends StatefulWidget {
|
|||||||
onUserAvatarTap: onUserAvatarTap ?? this.onUserAvatarTap,
|
onUserAvatarTap: onUserAvatarTap ?? this.onUserAvatarTap,
|
||||||
onLinkTap: onLinkTap ?? this.onLinkTap,
|
onLinkTap: onLinkTap ?? this.onLinkTap,
|
||||||
showReactionPicker: showReactionPicker ?? this.showReactionPicker,
|
showReactionPicker: showReactionPicker ?? this.showReactionPicker,
|
||||||
showReactionPickerTail:
|
|
||||||
showReactionPickerTail ?? this.showReactionPickerTail,
|
|
||||||
onShowMessage: onShowMessage ?? this.onShowMessage,
|
onShowMessage: onShowMessage ?? this.onShowMessage,
|
||||||
showUsername: showUsername ?? this.showUsername,
|
showUsername: showUsername ?? this.showUsername,
|
||||||
showTimestamp: showTimestamp ?? this.showTimestamp,
|
showTimestamp: showTimestamp ?? this.showTimestamp,
|
||||||
@@ -1084,9 +1072,7 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
|
|||||||
translateUserAvatar: false,
|
translateUserAvatar: false,
|
||||||
showSendingIndicator: false,
|
showSendingIndicator: false,
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
// Show both the tail if the picker is shown.
|
|
||||||
showReactionPicker: widget.showReactionPicker,
|
showReactionPicker: widget.showReactionPicker,
|
||||||
showReactionPickerTail: widget.showReactionPicker,
|
|
||||||
showPinHighlight: false,
|
showPinHighlight: false,
|
||||||
showUserAvatar:
|
showUserAvatar:
|
||||||
widget.message.user!.id == channel.client.state.currentUser!.id
|
widget.message.user!.id == channel.client.state.currentUser!.id
|
||||||
|
|||||||
Reference in New Issue
Block a user