Merge branch 'develop' of https://github.com/GetStream/stream-chat-flutter into overlay-alt
This commit is contained in:
@@ -4,8 +4,8 @@ import 'package:stream_chat_flutter/src/group_avatar.dart';
|
|||||||
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
||||||
import 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart';
|
import 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart';
|
||||||
|
|
||||||
/// 
|
/// 
|
||||||
/// 
|
/// 
|
||||||
///
|
///
|
||||||
/// It shows the current [Channel] image.
|
/// It shows the current [Channel] image.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
|||||||
import 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart';
|
import 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart';
|
||||||
import 'package:stream_chat_flutter/src/extension.dart';
|
import 'package:stream_chat_flutter/src/extension.dart';
|
||||||
|
|
||||||
/// 
|
/// 
|
||||||
/// 
|
/// 
|
||||||
///
|
///
|
||||||
/// It shows the current [Channel] information.
|
/// It shows the current [Channel] information.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ typedef ChannelPreviewBuilder = Widget Function(BuildContext, Channel);
|
|||||||
/// Callback for when 'View Info' is tapped
|
/// Callback for when 'View Info' is tapped
|
||||||
typedef ViewInfoCallback = void Function(Channel);
|
typedef ViewInfoCallback = void Function(Channel);
|
||||||
|
|
||||||
/// 
|
/// 
|
||||||
/// 
|
/// 
|
||||||
///
|
///
|
||||||
/// It shows the list of current channels.
|
/// It shows the list of current channels.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import 'package:stream_chat_flutter/src/stream_svg_icon.dart';
|
|||||||
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
||||||
import 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart';
|
import 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart';
|
||||||
|
|
||||||
/// 
|
/// 
|
||||||
/// 
|
/// 
|
||||||
///
|
///
|
||||||
/// It shows the current [Channel] preview.
|
/// It shows the current [Channel] preview.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -111,11 +111,14 @@ const _kMinMediaPickerSize = 360.0;
|
|||||||
const _kDefaultMaxAttachmentSize = 20971520; // 20MB in Bytes
|
const _kDefaultMaxAttachmentSize = 20971520; // 20MB in Bytes
|
||||||
|
|
||||||
/// Inactive state
|
/// Inactive state
|
||||||
/// 
|
///
|
||||||
/// 
|
/// 
|
||||||
|
/// 
|
||||||
|
///
|
||||||
/// Focused state
|
/// Focused state
|
||||||
/// 
|
///
|
||||||
/// 
|
/// 
|
||||||
|
/// 
|
||||||
///
|
///
|
||||||
/// Widget used to enter the message and add attachments
|
/// Widget used to enter the message and add attachments
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -91,8 +91,8 @@ class MessageDetails {
|
|||||||
final int index;
|
final int index;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 
|
/// 
|
||||||
/// 
|
/// 
|
||||||
///
|
///
|
||||||
/// It shows the list of messages of the current channel.
|
/// It shows the list of messages of the current channel.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ enum DisplayWidget {
|
|||||||
show,
|
show,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 
|
/// 
|
||||||
/// 
|
/// 
|
||||||
///
|
///
|
||||||
/// It shows a message with reactions, replies and user avatar.
|
/// It shows a message with reactions, replies and user avatar.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:stream_chat_flutter/src/extension.dart';
|
import 'package:stream_chat_flutter/src/extension.dart';
|
||||||
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
||||||
|
|
||||||
/// 
|
/// 
|
||||||
/// 
|
/// 
|
||||||
///
|
///
|
||||||
/// It shows a reaction picker
|
/// It shows a reaction picker
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
|||||||
import 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart';
|
import 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart';
|
||||||
import 'package:stream_chat_flutter/src/extension.dart';
|
import 'package:stream_chat_flutter/src/extension.dart';
|
||||||
|
|
||||||
/// 
|
/// 
|
||||||
/// 
|
/// 
|
||||||
///
|
///
|
||||||
/// It shows the current thread information.
|
/// It shows the current thread information.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -68,25 +68,34 @@ class UserAvatar extends StatelessWidget {
|
|||||||
|
|
||||||
Widget avatar = FittedBox(
|
Widget avatar = FittedBox(
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
child: ClipRRect(
|
child: Container(
|
||||||
borderRadius: borderRadius ??
|
constraints: constraints ??
|
||||||
streamChatTheme.ownMessageTheme.avatarTheme?.borderRadius,
|
streamChatTheme.ownMessageTheme.avatarTheme?.constraints,
|
||||||
child: Container(
|
child: hasImage
|
||||||
constraints: constraints ??
|
? CachedNetworkImage(
|
||||||
streamChatTheme.ownMessageTheme.avatarTheme?.constraints,
|
fit: BoxFit.cover,
|
||||||
child: hasImage
|
filterQuality: FilterQuality.high,
|
||||||
? CachedNetworkImage(
|
imageUrl: user.image!,
|
||||||
fit: BoxFit.cover,
|
errorWidget: (context, __, ___) =>
|
||||||
filterQuality: FilterQuality.high,
|
streamChatTheme.defaultUserImage(context, user),
|
||||||
imageUrl: user.image!,
|
placeholder: placeholder != null
|
||||||
errorWidget: (context, __, ___) =>
|
? (context, __) => placeholder(context, user)
|
||||||
streamChatTheme.defaultUserImage(context, user),
|
: null,
|
||||||
placeholder: placeholder != null
|
imageBuilder: (context, imageProvider) => Container(
|
||||||
? (context, __) => placeholder(context, user)
|
decoration: BoxDecoration(
|
||||||
: null,
|
borderRadius: borderRadius ??
|
||||||
)
|
streamChatTheme
|
||||||
: streamChatTheme.defaultUserImage(context, user),
|
.ownMessageTheme.avatarTheme?.borderRadius,
|
||||||
),
|
image: DecorationImage(
|
||||||
|
image: imageProvider, fit: BoxFit.cover),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
: ClipRRect(
|
||||||
|
borderRadius: borderRadius ??
|
||||||
|
streamChatTheme.ownMessageTheme.avatarTheme?.borderRadius,
|
||||||
|
child: streamChatTheme.defaultUserImage(context, user),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user