Flutter Widget Integration

For Flutter, you can integrate with our widget using the in-app browser package flutter_web_browser. Note that using the webviews will cause authentification issues with some of the wearable providers.


A demo project is available on https://github.com/tryterra/Terra-Flutter-Widget


After setting up the flutter application, add the flutter_web_browser dependency to your pubsec.yaml and install using flutter pub get. More details about the package can be found here.

Generate Session ID

Before using the in-app browser, you must generate a Session ID to pass to your application from your backend (further details about generating a Session ID here).

Using the in-app browser

The following code snipet will open an in-app browser session and connect to a Terra session