update dependencies

This commit is contained in:
Salvatore Giordano
2020-04-19 23:50:24 +02:00
parent 1b8875d2ea
commit a21319d88e
3 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
## 0.1.26
## 0.1.27
- Show other member user's name and image in one to one channels
+14 -14
View File
@@ -1,3 +1,4 @@
import 'dart:async';
import 'dart:io';
import 'package:file_picker/file_picker.dart';
@@ -760,7 +761,7 @@ class _MessageInputState extends State<MessageInput> {
});
}
int _keyboardListener;
StreamSubscription _keyboardListener;
@override
void initState() {
@@ -768,16 +769,8 @@ class _MessageInputState extends State<MessageInput> {
StreamChannel.of(context).queryMembersAndWatchers();
_keyboardListener = KeyboardVisibilityNotification().addNewListener(
onHide: () {
if (_commandsOverlay != null) {
_commandsOverlay.remove();
}
if (_mentionsOverlay != null) {
_mentionsOverlay.remove();
}
},
onShow: () {
_keyboardListener = KeyboardVisibility.onChange.listen((visible) {
if (visible) {
if (_commandsOverlay != null) {
if (_textController.text.startsWith('/')) {
WidgetsBinding.instance.addPostFrameCallback((_) {
@@ -795,8 +788,15 @@ class _MessageInputState extends State<MessageInput> {
});
}
}
},
);
} else {
if (_commandsOverlay != null) {
_commandsOverlay.remove();
}
if (_mentionsOverlay != null) {
_mentionsOverlay.remove();
}
}
});
if (widget.editMessage != null) {
_textController = TextEditingController(text: widget.editMessage.text);
@@ -837,7 +837,7 @@ class _MessageInputState extends State<MessageInput> {
void dispose() {
_commandsOverlay?.remove();
_mentionsOverlay?.remove();
KeyboardVisibilityNotification().removeListener(_keyboardListener);
_keyboardListener.cancel();
super.dispose();
}
+5 -5
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.1.26
version: 0.1.27
environment:
sdk: ">=2.3.0 <3.0.0"
@@ -9,16 +9,16 @@ environment:
dependencies:
flutter:
sdk: flutter
rxdart: ^0.23.1
rxdart: ^0.24.0
jiffy: ^3.0.1
cached_network_image: ^2.1.0+1
flutter_markdown: ^0.3.4
flutter_markdown: ^0.3.5
url_launcher: ^5.4.2
video_player: ^0.10.8+1
chewie: ^0.9.10
file_picker: ^1.6.2
file_picker: ^1.6.3+1
image_picker: ^0.6.5
flutter_keyboard_visibility: ^0.8.0
flutter_keyboard_visibility: ^2.0.0
stream_chat: ^0.1.21
mime: ^0.9.6+3
visibility_detector: ^0.1.4