update pubspec and changelogs
This commit is contained in:
@@ -58,7 +58,8 @@ class AttachmentActionsModal extends StatelessWidget {
|
||||
/// List of custom actions
|
||||
final List<AttachmentAction> customActions;
|
||||
|
||||
/// Creates a copy of [StreamMessageWidget] with specified attributes overridden.
|
||||
/// Creates a copy of [StreamMessageWidget] with
|
||||
/// specified attributes overridden.
|
||||
AttachmentActionsModal copyWith({
|
||||
Key? key,
|
||||
int? currentIndex,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import 'package:jiffy/jiffy.dart';
|
||||
import 'package:stream_chat_flutter/src/connection_status_builder.dart';
|
||||
import 'package:stream_chat_flutter/src/message_input/message_input.dart';
|
||||
import 'package:stream_chat_flutter/src/message_list_view.dart';
|
||||
import 'package:stream_chat_flutter/src/message_search_list_view.dart';
|
||||
import 'package:stream_chat_flutter/src/v4/message_input/stream_message_input.dart';
|
||||
import 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart'
|
||||
show User;
|
||||
|
||||
@@ -87,7 +87,8 @@ abstract class Translations {
|
||||
/// The label for "reconnecting" in [StreamConnectionStatusBuilder]
|
||||
String get reconnectingLabel;
|
||||
|
||||
/// The label for also send as direct message "checkbox"" in [StreamMessageInput]
|
||||
/// The label for also send
|
||||
/// as direct message "checkbox"" in [StreamMessageInput]
|
||||
String get alsoSendAsDirectMessageLabel;
|
||||
|
||||
/// The label for search Gif
|
||||
|
||||
@@ -428,7 +428,8 @@ class StreamMessageWidget extends StatefulWidget {
|
||||
/// Customize onTap on attachment
|
||||
final void Function(Message message, Attachment attachment)? onAttachmentTap;
|
||||
|
||||
/// Creates a copy of [StreamMessageWidget] with specified attributes overridden.
|
||||
/// Creates a copy of [StreamMessageWidget] with
|
||||
/// specified attributes overridden.
|
||||
StreamMessageWidget copyWith({
|
||||
Key? key,
|
||||
void Function(User)? onMentionTap,
|
||||
|
||||
@@ -12,7 +12,8 @@ typedef ChannelListHeaderTheme = StreamChannelListHeaderTheme;
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [StreamChannelListHeaderThemeData], which is used to configure this theme.
|
||||
/// * [StreamChannelListHeaderThemeData], which is used
|
||||
/// to configure this theme.
|
||||
/// {@endtemplate}
|
||||
class StreamChannelListHeaderTheme extends InheritedTheme {
|
||||
/// Creates a [StreamChannelListHeaderTheme].
|
||||
@@ -90,7 +91,8 @@ class StreamChannelListHeaderThemeData with Diagnosticable {
|
||||
color: color ?? this.color,
|
||||
);
|
||||
|
||||
/// Linearly interpolate from one [StreamChannelListHeaderThemeData] to another.
|
||||
/// Linearly interpolate from one [StreamChannelListHeaderThemeData]
|
||||
/// to another.
|
||||
StreamChannelListHeaderThemeData lerp(
|
||||
StreamChannelListHeaderThemeData a,
|
||||
StreamChannelListHeaderThemeData b,
|
||||
|
||||
@@ -58,12 +58,14 @@ typedef ChannelListViewThemeData = StreamChannelListViewThemeData;
|
||||
|
||||
/// {@template channel_list_view_theme_data}
|
||||
/// A style that overrides the default appearance of [ChannelListView]s when
|
||||
/// used with [StreamChannelListViewTheme] or with the overall [StreamChatTheme]'s
|
||||
/// used with [StreamChannelListViewTheme]
|
||||
/// or with the overall [StreamChatTheme]'s
|
||||
/// [StreamChatThemeData.channelListViewTheme].
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [StreamChannelListViewTheme], the theme which is configured with this class.
|
||||
/// * [StreamChannelListViewTheme], the theme
|
||||
/// which is configured with this class.
|
||||
/// * [StreamChatThemeData.channelListViewTheme], which can be used to override
|
||||
/// the default style for [ChannelListView]s below the overall
|
||||
/// [StreamChatTheme].
|
||||
|
||||
@@ -64,7 +64,8 @@ typedef ChannelPreviewThemeData = StreamChannelPreviewThemeData;
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [StreamChannelPreviewTheme], the theme which is configured with this class.
|
||||
/// * [StreamChannelPreviewTheme], the theme
|
||||
/// which is configured with this class.
|
||||
/// * [StreamChatThemeData.channelPreviewTheme], which can be used to override
|
||||
/// the default style for [ChannelHeader]s below the overall [StreamChatTheme].
|
||||
/// {@endtemplate}
|
||||
|
||||
@@ -61,7 +61,8 @@ typedef MessageInputThemeData = StreamMessageInputThemeData;
|
||||
|
||||
/// {@template message_input_theme_data}
|
||||
/// A style that overrides the default appearance of [MessageInput] widgets
|
||||
/// when used with [StreamMessageInputTheme] or with the overall [StreamChatTheme]'s
|
||||
/// when used with [StreamMessageInputTheme]
|
||||
/// or with the overall [StreamChatTheme]'s
|
||||
/// [StreamChatThemeData.messageInputTheme].
|
||||
/// {@endtemplate}
|
||||
class StreamMessageInputThemeData with Diagnosticable {
|
||||
@@ -133,7 +134,8 @@ class StreamMessageInputThemeData with Diagnosticable {
|
||||
/// Shadow for the [MessageInput] widget
|
||||
final BoxShadow? shadow;
|
||||
|
||||
/// Returns a new [StreamMessageInputThemeData] replacing some of its properties
|
||||
/// Returns a new [StreamMessageInputThemeData]
|
||||
/// replacing some of its properties
|
||||
StreamMessageInputThemeData copyWith({
|
||||
Duration? sendAnimationDuration,
|
||||
Color? inputBackgroundColor,
|
||||
|
||||
@@ -58,12 +58,14 @@ typedef MessageListViewThemeData = StreamMessageListViewThemeData;
|
||||
|
||||
/// {@template message_list_view_theme_data}
|
||||
/// A style that overrides the default appearance of [MessageListView]s when
|
||||
/// used with [StreamMessageListViewTheme] or with the overall [StreamChatTheme]'s
|
||||
/// used with [StreamMessageListViewTheme] or with
|
||||
/// the overall [StreamChatTheme]'s
|
||||
/// [StreamChatThemeData.messageListViewTheme].
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [StreamMessageListViewTheme], the theme which is configured with this class.
|
||||
/// * [StreamMessageListViewTheme], the theme
|
||||
/// which is configured with this class.
|
||||
/// * [StreamChatThemeData.messageListViewTheme], which can be used to override
|
||||
/// the default style for [MessageListView]s below the overall
|
||||
/// [StreamChatTheme].
|
||||
|
||||
@@ -63,8 +63,8 @@ typedef MessageSearchListViewThemeData = StreamMessageSearchListViewThemeData;
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [StreamMessageSearchListViewTheme], the theme which is configured with this
|
||||
/// class.
|
||||
/// * [StreamMessageSearchListViewTheme], the theme
|
||||
/// which is configured with this class.
|
||||
/// * [StreamChatThemeData.messageSearchListViewTheme], which can be used to
|
||||
/// override the default style for [UserListView]s below the overall
|
||||
/// [StreamChatTheme].
|
||||
|
||||
-9
@@ -1,16 +1,7 @@
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:jiffy/jiffy.dart';
|
||||
import 'package:stream_chat_flutter/src/extension.dart';
|
||||
import 'package:stream_chat_flutter/src/sending_indicator.dart';
|
||||
import 'package:stream_chat_flutter/src/stream_svg_icon.dart';
|
||||
import 'package:stream_chat_flutter/src/theme/channel_preview_theme.dart';
|
||||
import 'package:stream_chat_flutter/src/typing_indicator.dart';
|
||||
import 'package:stream_chat_flutter/src/unread_indicator.dart';
|
||||
import 'package:stream_chat_flutter/src/v4/stream_channel_avatar.dart';
|
||||
import 'package:stream_chat_flutter/src/v4/stream_channel_name.dart';
|
||||
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
||||
import 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart';
|
||||
|
||||
/// A widget that displays a channel preview.
|
||||
///
|
||||
|
||||
+1
-1
@@ -352,7 +352,7 @@ class _StreamAttachmentPickerState extends State<StreamAttachmentPicker> {
|
||||
|
||||
if (mediaFile == null) return;
|
||||
|
||||
var file = AttachmentFile(
|
||||
final file = AttachmentFile(
|
||||
path: mediaFile.path,
|
||||
size: await mediaFile.length(),
|
||||
bytes: mediaFile.readAsBytesSync(),
|
||||
+4
-3
@@ -13,11 +13,11 @@ import 'package:stream_chat_flutter/src/commands_overlay.dart';
|
||||
import 'package:stream_chat_flutter/src/emoji/emoji.dart';
|
||||
import 'package:stream_chat_flutter/src/emoji_overlay.dart';
|
||||
import 'package:stream_chat_flutter/src/extension.dart';
|
||||
import 'package:stream_chat_flutter/src/message_input/simple_safe_area.dart';
|
||||
import 'package:stream_chat_flutter/src/message_input/tld.dart';
|
||||
import 'package:stream_chat_flutter/src/multi_overlay.dart';
|
||||
import 'package:stream_chat_flutter/src/quoted_message_widget.dart';
|
||||
import 'package:stream_chat_flutter/src/user_mentions_overlay.dart';
|
||||
import 'package:stream_chat_flutter/src/v4/message_input/simple_safe_area.dart';
|
||||
import 'package:stream_chat_flutter/src/v4/message_input/tld.dart';
|
||||
import 'package:stream_chat_flutter/src/video_thumbnail_image.dart';
|
||||
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
||||
|
||||
@@ -34,7 +34,8 @@ typedef ErrorListener = void Function(
|
||||
StackTrace? stackTrace,
|
||||
);
|
||||
|
||||
/// A callback that can be passed to [StreamMessageInput.onAttachmentLimitExceed].
|
||||
/// A callback that can be passed to
|
||||
/// [StreamMessageInput.onAttachmentLimitExceed].
|
||||
///
|
||||
/// This callback should not throw.
|
||||
///
|
||||
Reference in New Issue
Block a user