Skip to content
pubscout

terra_flutter_bridge

2.3.0, released yesterday by tryterra.co

Terra health SDK for Flutter accessing Apple Health and Health Connect

$ flutter pub add terra_flutter_bridge
Source repository

What it does

Terra's health SDK for Flutter, providing a bridge to Apple Health on iOS and Health Connect on Android. It allows apps to request health permissions, connect data sources, and read daily health data or stream information.

AI-written summary of version 2.2.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to integrate Apple Health or Health Connect data into your Flutter application.
  • You want to read daily health metrics like steps from supported health platforms.

Skip it when

  • You are targeting platforms other than iOS and Android.
  • You want a pure Dart health solution without native bridge requirements.

Strengths

  • Supports both Apple Health and Android Health Connect through a unified API.
  • Handles health data syncing and streams.

Weaknesses

  • Requires platform-specific native configuration in Info.plist and AndroidManifest.xml.
  • Requires specific minimum versions like Flutter 3.24, iOS 15, and Android API 28.

Setup

Kind
Plugin (native code)
Effort
High
Code generation
No
Direct dependencies
0

Requires native setup including Info.plist configurations, BGTaskScheduler identifiers, MainActivity extending FlutterFragmentActivity, minSdk 28, and a native bootstrap call.

WidgetsFlutterBinding.ensureInitialized();
final terra = createTerra(tokenProvider: fetchTokenFromYourBackend);
await terra.permissions.request(read: [DataCategory.daily]);
await terra.connect(Source.health, const EndUser.reference(id: 'user-123'));
final steps = await terra.daily.steps(const TimeRange.today());

Alternatives

Packages that do the same job and could replace terra_flutter_bridge.