Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.1

- Fixed vertical scrolling when the ChatBox is in a bottom sheet

## 0.2.0

- Implemented the `onLoadingStateChanged` callback
Expand Down
7 changes: 6 additions & 1 deletion lib/src/chatbox.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';

import 'package:webview_flutter/webview_flutter.dart';

Expand Down Expand Up @@ -192,7 +193,11 @@ class ChatBoxState extends State<ChatBox> {
JavascriptChannel(name: 'JSCTranslationToggled', onMessageReceived: _jscTranslationToggled),
JavascriptChannel(name: 'JSCLoadingState', onMessageReceived: _jscLoadingState),
JavascriptChannel(name: 'JSCCustomMessageAction', onMessageReceived: _jscCustomMessageAction),
});
},
gestureRecognizers: {
Factory(() => VerticalDragGestureRecognizer()),
},
);
}

void _createSession() {
Expand Down
9 changes: 7 additions & 2 deletions lib/src/conversationlist.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter/foundation.dart' show kDebugMode;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';

import 'package:webview_flutter/webview_flutter.dart';

Expand Down Expand Up @@ -151,7 +152,11 @@ class ConversationListState extends State<ConversationList> {
javascriptChannels: <JavascriptChannel>{
JavascriptChannel(name: 'JSCSelectConversation', onMessageReceived: _jscSelectConversation),
JavascriptChannel(name: 'JSCLoadingState', onMessageReceived: _jscLoadingState),
});
},
gestureRecognizers: {
Factory(() => VerticalDragGestureRecognizer()),
},
);
}

void _createSession() {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: talkjs_flutter
description: Official TalkJS SDK for Flutter
version: 0.2.0
version: 0.2.1
homepage: https://talkjs.com

environment:
Expand Down