For the complete documentation index, see llms.txt. This page is also available as Markdown.

Flutter

Thryve provides Flutter SDK and modules that are using the Thryve native SDKs.

The Flutter wrapper for the native SDKs supports all functionalities of the native SDKs unless stated differently.

Starting from version 5.2.0, the Thryve Flutter SDK, supports integration via the new Samsung Health Data for Android exclusively. Read more on the Thryve Samsung Health module

Configuration of projects

The Flutter SDK supports the development of iOS and Android applications. Follow the guide below to configure your project.

  • Create a directory, plugin inside the project's root directory

  • Copy the Thryve Flutter SDK plugins (applicable to your project) into the newly created plugin directory of the project.

  • In your project's pubspec.yaml, ensure the environment sdk property is >=3.1.0 <4.0.0

  • In your project's pubspec.yaml, add the Thryve Flutter SDK dependencies applicable to your project in the dependencies: block

...
dependencies:
  flutter:
    sdk: flutter
    
  thryve_sdk:
    path: plugin/thryve_sdk // required for all integrations
  module_samsung_health:
    path: plugin/module_samsung_health // optional, required for Samsung Health integration
  module_health_connect:
    path: plugin/module_health_connect // optional, required for Health Connect integration
  module_apple_health:
    path: plugin/module_apple_health // optional, required for Apple Healthkit integration
  module_shen_ai:
    path: plugin/module_shen_ai // optional, required for ShenAI integration
...
  • Add the Thryve Pods Spec source to Podfile and/or Android dependencies repository to build.gradle

Add the Thryve Pods spec source the the Podfile

For more details refer to the sample code demonstrating the SDK configuration.

Migrating to Flutter SDK 5.2.0

Breaking Changes (5.2.0)

Samsung Health

Samsung Health data types replaced

The entire ThryveSamsungHealthDataType enum has been replaced to align with the new Samsung Health data model. All previous values are removed with no backwards-compatible aliases.

You must update every reference in your app to use the new values listed in the ThryveSamsungHealthDataType reference.

Health Connect HealthConnectDataType renamed

Apple Health HKConnectorType renamed

Last updated