This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MSE-110] Ada chat Flutter implementation. Small fixes (#7)
* Add userid test value * Fix the error "Ada Embed - User is in the wrong rollout group." * Fix adaReadyCallback parameter * Show settings * Set rolloutOverride settings to fix the error: "Ada Embed - User is in the wrong rollout group." * Change Ada handle for example
- Loading branch information
1 parent
03363ca
commit 7233815
Showing
2 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,28 +34,31 @@ class _AdaChatScreenState extends State<AdaChatScreen> { | |
body: Stack( | ||
children: [ | ||
AdaWebView( | ||
handle: 'headspace-sandbox', | ||
name: 'John Doe', | ||
handle: 'example-handle', | ||
name: 'User 1', | ||
email: '[email protected]', | ||
phone: '+234345566789', | ||
phone: '+5342342131324', | ||
greeting: widget.greeting, | ||
controller: _adaController, | ||
language: 'en', | ||
metaFields: const { | ||
'userid': '1234567890', | ||
'keyStr': 'value3', | ||
'keyBool': false, | ||
'keyDouble': 3.456789, | ||
'keyInt': 42, | ||
'keyNull': null, | ||
}, | ||
rolloutOverride: 1, | ||
sensitiveMetaFields: const { | ||
'keySens': 'valueSens', | ||
}, | ||
onProgressChanged: (progress) => setState(() { | ||
_progress = progress / 100; | ||
}), | ||
onAdaReady: () { | ||
debugPrint('AdaChatScreen:onAdaReady'); | ||
onAdaReady: (isRolledOut) { | ||
debugPrint( | ||
'AdaChatScreen:onAdaReady: isRolledOut=$isRolledOut'); | ||
setState(() => _progress = 0); | ||
}, | ||
onLoaded: (data) => | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters