Merge branch 'master' into feature/new-ui
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
## 0.2.12
|
||||||
|
|
||||||
|
- Upgrade dependencies
|
||||||
|
- Check if user.extraData['image'] is not null before using it
|
||||||
|
|
||||||
## 0.2.11+1
|
## 0.2.11+1
|
||||||
|
|
||||||
- Fix error with channel query while handling background notifications
|
- Fix error with channel query while handling background notifications
|
||||||
|
|||||||
@@ -24,7 +24,11 @@ class MessageText extends StatelessWidget {
|
|||||||
final text = _replaceMentions(message.text);
|
final text = _replaceMentions(message.text);
|
||||||
return MarkdownBody(
|
return MarkdownBody(
|
||||||
data: text,
|
data: text,
|
||||||
onTapLink: (text, link, title) {
|
onTapLink: (
|
||||||
|
String link,
|
||||||
|
String href,
|
||||||
|
String title,
|
||||||
|
) {
|
||||||
if (link.startsWith('@')) {
|
if (link.startsWith('@')) {
|
||||||
final mentionedUser = message.mentionedUsers.firstWhere(
|
final mentionedUser = message.mentionedUsers.firstWhere(
|
||||||
(u) => '@${u.name.replaceAll(' ', '')}' == link,
|
(u) => '@${u.name.replaceAll(' ', '')}' == link,
|
||||||
|
|||||||
@@ -24,6 +24,9 @@ class UserAvatar extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final hasImage = user.extraData?.containsKey('image') == true &&
|
||||||
|
user.extraData['image'] != null &&
|
||||||
|
user.extraData['image'] != '';
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: onTap != null
|
onTap: onTap != null
|
||||||
? () {
|
? () {
|
||||||
@@ -49,7 +52,7 @@ class UserAvatar extends StatelessWidget {
|
|||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StreamChatTheme.of(context).accentColor,
|
color: StreamChatTheme.of(context).accentColor,
|
||||||
),
|
),
|
||||||
child: user.extraData?.containsKey('image') ?? false
|
child: hasImage
|
||||||
? CachedNetworkImage(
|
? CachedNetworkImage(
|
||||||
imageUrl: user.extraData['image'],
|
imageUrl: user.extraData['image'],
|
||||||
errorWidget: (_, __, ___) {
|
errorWidget: (_, __, ___) {
|
||||||
|
|||||||
+7
-7
@@ -1,7 +1,7 @@
|
|||||||
name: stream_chat_flutter
|
name: stream_chat_flutter
|
||||||
homepage: https://github.com/GetStream/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.
|
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
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
|
|
||||||
@@ -21,13 +21,13 @@ dependencies:
|
|||||||
cached_network_image: ^2.2.0+1
|
cached_network_image: ^2.2.0+1
|
||||||
flutter_markdown: ^0.5.0
|
flutter_markdown: ^0.5.0
|
||||||
url_launcher: ^5.4.11
|
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
|
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
|
mime: ^0.9.6+3
|
||||||
visibility_detector: ^0.1.5
|
visibility_detector: ^0.1.5
|
||||||
http_parser: ^3.1.4
|
http_parser: ^3.1.4
|
||||||
|
|||||||
Reference in New Issue
Block a user