dexcom 0.0.0 copy "dexcom: ^0.0.0" to clipboard
dexcom: ^0.0.0 copied to clipboard

Allows Dexcom Share functionality in your Flutter apps.

dexcom for Flutter allows you to use your Dexcom CGM data, or anybody else's, to run your application. Includes time (in milliseconds since Enoch), reading, and trend.

Features #

Very simple to use.

Usage #

Authentication:

String username = "username";
String password = "password";
var dexcom = Dexcom(username, password);
List<dynamic>? response;

try {
    await dexcom.createSession();
    print("Created session with dexcom: $dexcom");
} catch (e) {
    print("Session creation error: $e");
}

This creates a dexcom instance and gets the session ID. You can now get readings.

Retrieving data:

try {
    response = await dexcom.getGlucoseReadings(maxCount: 1, minutes: 60);
    print("Read data with dexcom: $dexcom");
} catch (e) {
    print("Unable to read data with dexcom: $e");
}

if (response != null) {
    print("Data received: $response");
    return response;
else {
    print("Data is null");
}

Additional information #

This package was based off of pydexcom for Python. I (and some help from ChatGPT) ported it to Flutter.

WARNING: THIS PACKAGE IS STILL IN BETA: IT MAY BE UNSTABLE! USE AT YOUR OWN RISK!

0
likes
0
points
310
downloads

Publisher

unverified uploader

Weekly Downloads

Allows Dexcom Share functionality in your Flutter apps.

License

unknown (license)

Dependencies

flutter, flutter_test, http, intl, uuid

More

Packages that depend on dexcom