polar
7.12.0, released 2 months ago by rexios.dev
Dart plugin wrapper for the Polar BLE SDK on Android and iOS
What it does
It acts as a bridge to the Polar BLE SDK, allowing Flutter applications to connect to Polar devices, manage features, and stream sensor data like HR, ECG, and ACC.
AI-written summary of version 7.12.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to connect and interact with Polar Bluetooth devices in a Flutter app
- You want to stream biometric and motion data such as heart rate or ECG from Polar hardware
Skip it when
- You are building an app that does not interact with Polar hardware
- You need an official first-party SDK wrapper directly from Polar
Strengths
- Provides direct access to Polar sensor streaming and device control
- Supports multiple streams like HR, ECG, ACC, temperature, and pressure
Weaknesses
- It is an unofficial community-maintained wrapper for the Polar SDK
- Requires manual configuration of native Bluetooth permissions and specific iOS deployment targets
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- Yes (build_runner)
- Direct dependencies
- 6
Requires adding Bluetooth permissions in AndroidManifest.xml, changing the iOS deployment target to iOS 14+, and adding Bluetooth usage descriptions to Info.plist.
import 'package:flutter/foundation.dart';
import 'package:polar/polar.dart';
const identifier = '1C709B20';
final polar = Polar();
void example() {
polar.connectToDevice(identifier);
}Alternatives
Packages that do the same job and could replace polar.
- inappstory_plugin
A Flutter plugin to use InAppStory SDK. Supports Android and iOS platforms.
76Compare - health
Wrapper for Apple's HealthKit and Google's Health Connect.
91Compare - watch_connectivity
Wrapper for WatchConnectivity on iOS and Wearable APIs on Android.
85Compare - health_connector
Flutter health SDK for iOS HealthKit and Android Health Connect integration.
80Compare
Works with
Packages commonly used together with polar: ones it builds on, ones built on it, and its own family.
- json_annotationpolar depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- flutter_plugin_android_lifecyclepolar depends on itFlutter plugin for accessing Android Lifecycle within other plugins.
- device_info_pluspolar depends on itProvides detailed information about the current device, make, model, and OS version.
- permission_handlerpolar depends on itCross-platform API to check and request permissions on iOS, Android, Web, and Windows.
- recasepolar depends on itChanges the case of input text to various conventions.