Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
fix: Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
slava-r-epam committed Jun 25, 2024
1 parent fa719b3 commit d80b407
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class _AdaChatScreenState extends State<AdaChatScreen> {
onConversationEnd: (event) =>
log('AdaChatScreen:onConversationEnd: event=$event'),
onDrawerToggle: (isDrawerOpen) =>
log('AdaChatScreen:onConversationEnd: '
log('AdaChatScreen:onDrawerToggle: '
'isDrawerOpen=$isDrawerOpen'),
onLoadingError: (request, response) =>
log('AdaChatScreen:onLoadingError: '
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,18 @@ class PageDescription extends StatelessWidget {
style: Theme.of(context).textTheme.bodySmall,
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
controller.isHttps ? Icons.lock : Icons.lock_open,
size: 10,
),
const SizedBox(width: 8),
Expanded(
child: Text(
controller.host,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.bodyMedium,
if (controller.host.isNotEmpty)
Icon(
controller.isHttps ? Icons.lock : Icons.lock_open,
size: 10,
),
const SizedBox(width: 8),
Text(
controller.host,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.bodyMedium,
),
],
),
Expand Down
3 changes: 0 additions & 3 deletions packages/ada_chat_flutter/lib/src/ada_web_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -305,16 +305,13 @@ window.adaSettings = {
});
},
conversationEndCallback: function(event) {
console.log("onConversationEnd: " + JSON.stringify(event));
onConversationEnd.postMessage(JSON.stringify(event));
},
toggleCallback: function(isDrawerOpen) {
console.log("onDrawerToggle: " + JSON.stringify(isDrawerOpen));
onDrawerToggle.postMessage(JSON.stringify(isDrawerOpen));
},
eventCallbacks: {
"*": function(event) {
console.log("onEvent: " + JSON.stringify(event));
onEvent.postMessage(JSON.stringify(event));
}
}
Expand Down

0 comments on commit d80b407

Please sign in to comment.