Merge branch 'master' into feature/new-ui

This commit is contained in:
Salvatore Giordano
2020-11-11 12:09:16 +01:00
4 changed files with 21 additions and 9 deletions
+5
View File
@@ -1,3 +1,8 @@
## 0.2.12
- Upgrade dependencies
- Check if user.extraData['image'] is not null before using it
## 0.2.11+1
- Fix error with channel query while handling background notifications
+5 -1
View File
@@ -24,7 +24,11 @@ class MessageText extends StatelessWidget {
final text = _replaceMentions(message.text);
return MarkdownBody(
data: text,
onTapLink: (text, link, title) {
onTapLink: (
String link,
String href,
String title,
) {
if (link.startsWith('@')) {
final mentionedUser = message.mentionedUsers.firstWhere(
(u) => '@${u.name.replaceAll(' ', '')}' == link,
+4 -1
View File
@@ -24,6 +24,9 @@ class UserAvatar extends StatelessWidget {
@override
Widget build(BuildContext context) {
final hasImage = user.extraData?.containsKey('image') == true &&
user.extraData['image'] != null &&
user.extraData['image'] != '';
return GestureDetector(
onTap: onTap != null
? () {
@@ -49,7 +52,7 @@ class UserAvatar extends StatelessWidget {
decoration: BoxDecoration(
color: StreamChatTheme.of(context).accentColor,
),
child: user.extraData?.containsKey('image') ?? false
child: hasImage
? CachedNetworkImage(
imageUrl: user.extraData['image'],
errorWidget: (_, __, ___) {
+7 -7
View File
@@ -1,7 +1,7 @@
name: stream_chat_flutter
homepage: https://github.com/GetStream/stream-chat-flutter
description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.
version: 0.2.11+1
version: 0.2.12
repository: https://github.com/GetStream/stream-chat-flutter
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
@@ -21,13 +21,13 @@ dependencies:
cached_network_image: ^2.2.0+1
flutter_markdown: ^0.5.0
url_launcher: ^5.4.11
video_player: ^0.10.12+5
chewie: ^0.9.10
file_picker: ^2.0.8+1
image_picker: ^0.6.7+2
flutter_keyboard_visibility: ^3.2.1
stream_chat: ^0.2.11
emojis: ^0.9.3
video_player: ^1.0.0
chewie: ^0.10.4
file_picker: ^2.0.12
image_picker: ^0.6.7+2
flutter_keyboard_visibility: ^3.3.0
stream_chat: ^0.2.11
mime: ^0.9.6+3
visibility_detector: ^0.1.5
http_parser: ^3.1.4