A collection of Flutter plugins developed by CACHET

Overview

CACHET Flutter plugins

This repo contains the source code for Flutter first-party plugins developed by developers at the Copenhagen Center for Health Technology (CACHET) at The Technical University of Denmark. Check the packages directory for all plugins.

Flutter plugins enable access to platform-specific APIs using a platform channel. For more information about plugins, and how to use them, see https://flutter.io/platform-plugins/.

Plugins

These are the available plugins in this repository.

Plugin Description Android iOS Pub
screen_state Track screen state changes ✔️ pub package
light Track light sensor readings ✔️ pub package
pedometer Track step count ✔️ ✔️ pub package
noise_meter Read noise level in Decibel ✔️ ✔️ pub package
app_usage Track usage of all applications on phone. ✔️ pub package
weather Get current weather, as well as forecasting using the OpenWeatherMap API. ✔️ ✔️ pub package
air_quality Get the air quality index using the WAQI API. ✔️ ✔️ pub package
notifications Track device notifications. ✔️ pub package
movisens_flutter Movisens sensor communication. ✔️ pub package
esense_flutter eSense ear sensor plugin. ✔️ ✔️ pub package
health Apple HealthKit and Google Fit interface plugin. ✔️ ✔️ pub package
activity_recognition Activity Recognition ✔️ ✔️ pub package
audio_streamer Stream audio as PCM from mic ✔️ ✔️ pub package
mobility_features Compute daily mobility features from location data ✔️ ✔️ pub package
carp_background_location Track location, even when app is in the background ✔️ ✔️ pub package
flutter_foreground_service Foreground service for Android ✔️ ✔️ pub package

Issues

Please check existing issues and file any new issues, bugs, or feature requests in the flutter-plugin issue list.

Contributing

If you wish to contribute a new plugin to the Flutter ecosystem, please see the documentation for developing packages and platform channels. You can store your plugin source code in any GitHub repository (the present repo is only intended for plugins developed by the core CARP team). Once your plugin is ready you can publish to the pub repository.

If you wish to contribute a change to any of the existing plugins in this repo, please review our contribution guide, and send a pull request.

Comments
  • [Health2.0.9] Can't load step count from GoogleFit

    [Health2.0.9] Can't load step count from GoogleFit

    Device / Emulator and OS

    • Device: ONEPLUS A6000

    NB: Bugs pertaining to old devices/OS versions will likely not be fixed.

    • OxygenOS 10.3.6

    Describe the bug

    I copied the full example code. It works fine in iOS (Iphone11), but it does not work fine in Android.

    To Reproduce

    Copy the example code in your docs and test with the Android device.

    Expected behavior

    The app should return the step result list.

    Actual behavior

    Health Plugin Error:
    I/flutter ( 2456): 	NoSuchMethodError: The method 'map' was called on null.
    I/flutter ( 2456): Receiver: null
    I/flutter ( 2456): Tried calling: map<HealthDataPoint>(Closure: (dynamic) => HealthDataPoint)
    

    Flutter doctor

    [✓] Flutter (Channel stable, 1.22.3, on Mac OS X 10.15.7 19H2, locale en-TH)
     
    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    [✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    [!] Android Studio (version 4.1)
        ✗ Flutter plugin not installed; this adds Flutter specific functionality.
        ✗ Dart plugin not installed; this adds Dart specific functionality.
    [✓] VS Code (version 1.51.1)
    [✓] Connected device (1 available)
    

    Thanks in advance.

    bugfix 
    opened by nongtiny 15
  • [health 3.0.1] - Google authentication hangs on expanded loading screen

    [health 3.0.1] - Google authentication hangs on expanded loading screen

    Remember to specify the plugin name in the title!

    Device / Emulator and OS

    Please complete the following information for each phone and/or emulator you're experiencing this bug on:

    • Device: Android Studio AVD
    • Device: Samsung Galaxy S10+ (SM G975F)
    • OS: Android 10

    NB: Bugs pertaining to old devices/OS versions will likely not be fixed.

    Describe the bug

    Google Account is requested for authentication, login successfully. Once login has been processed, the device shows a loading screen in two stages:

    1. Loader contained within a white card, stretching the entire width of the screen, only tall enough to accomodate the loader, centered vertically. Stays in this state for less than 5 seconds.
    2. Loader contained within a white card, with the loader at the very top of the card. Same width as before except the card is much taller. Stays in this state perpetually unless cancelled by the user using the hardware back button.

    The same behaviour is exhibited on both the physical Android device and the Android Emulator.

    I have setup the OAuth 2.0 Client ID as per the instuctions. I have attempted to use two different Google Accounts, both of which are listed as Test Users (as my Google API project is still in Testing and awaiting approval).

    I am using the test project code provided on the package's page and have tried a range of different combinations of Data Types in my request to no avail.

    Interestingly, before I changed the package name on my app to match what the package name is on my Google API OAuth 2.0 Client ID, the behaviour was indentical.

    On the physical device, Google Fit is installed and has been setup. On the Android Emulator, you cannot setup Google Fit but I have read that this does not matter as it will pull through dummy data anyway (allegedly).

    To Reproduce

    Create a Flutter app using the sample code on the package's page. Run the project on either an Android Emulator or physical device. Attempt to load latest Google Fit data and login to a Google Account. Observe the two different loading screens as described above.

    Expected behavior

    The Google Fit data to be pulled through and displayed, as I have successfully managed to achieve on iOS.

    Actual behavior

    The two loading screens are displayed as described above, with the latter of the two remaining on the screen perpetually until the hardware back button is pressed.

    See the console outpit below. Note that the last line is output shortly after the login dialogue pops up (where you choose a Google Account) and no further output is displayed thereafter:

    I/ViewRootImpl@25dde13[MainActivity]( 5564): ViewPostIme pointer 0
    I/ViewRootImpl@25dde13[MainActivity]( 5564): ViewPostIme pointer 1
    W/ActivityThread( 5564): handleWindowVisibility: no activity for token android.os.BinderProxy@3f7cf1f
    D/PhoneWindow( 5564): forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4274 com.android.internal.policy.DecorView.updateColorViews:1547 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3252 android.view.Window.setFlags:1153 com.android.internal.policy.PhoneWindow.generateLayout:2474
    I/MultiWindowDecorSupport( 5564): [INFO] isPopOver = false
    I/MultiWindowDecorSupport( 5564): updateCaptionType >> DecorView@1167b96[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
    D/MultiWindowDecorSupport( 5564): setCaptionType = 0, DecorView = DecorView@1167b96[]
    I/ViewRootImpl@129676e[SignInHubActivity]( 5564): setView = com.android.internal.policy.DecorView@1167b96 TM=true MM=false
    I/ViewRootImpl@25dde13[MainActivity]( 5564): MSG_WINDOW_FOCUS_CHANGED 0 1
    D/InputMethodManager( 5564): prepareNavigationBarInfo() DecorView@46aa177[MainActivity]
    

    Screenshots

    The first loading screen which is displayed only momentarily: First Loading Screen

    The second loading screen which is displayed perpetually: Second Loading Screen

    Flutter doctor

    [✓] Flutter (Channel master, 1.26.0-2.0.pre.409, on macOS 11.1 20C69 darwin-x64, locale en-GB)
        • Flutter version 1.26.0-2.0.pre.409 at /Users/olliesaer/GitHub/flutter
        • Framework revision 3fbe1a5904 (15 minutes ago), 2021-01-19 16:49:03 -0600
        • Engine revision 609036f2bf
        • Dart version 2.12.0 (build 2.12.0-236.0.dev)
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
        • Android SDK at /Users/olliesaer/Library/Android/sdk
        • Platform android-29, build-tools 29.0.2
        • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
        • All Android licenses accepted.
    
    [!] Xcode - develop for iOS and macOS
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Xcode 12.3, Build version 12C33
        ! CocoaPods 1.8.4 out of date (1.10.0 is recommended).
            CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
            Without CocoaPods, plugins will not work on iOS or macOS.
            For more info, see https://flutter.dev/platform-plugins
          To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 3.5)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin version 42.1.1
        • Dart plugin version 191.8593
        • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    
    [✓] VS Code (version 1.52.1)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.18.1
    
    [✓] Connected device (4 available)
        • SM G975F (mobile)                  • R58M23PMKYN                          • android-arm64  • Android 10 (API 29)
        • Android SDK built for x86 (mobile) • emulator-5554                        • android-x86    • Android 10 (API 29) (emulator)
        • iPhone 12 Pro Max (mobile)         • C125C6E9-4685-4825-A11F-D59FE24AAC14 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
        • Chrome (web)                       • chrome                               • web-javascript • Google Chrome 87.0.4280.141
    
    ! Doctor found issues in 1 category.
    

    Additional information

    N/A, however I can provide any information which may help upon request.

    bugfix 
    opened by Oliver-Saer 12
  • [pedometer]android build faild,but debug run is ok

    [pedometer]android build faild,but debug run is ok

    ** pedometer & 1.0.0**

    [✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.14.6 18G3020, locale zh-Hans-CN) • Flutter version 1.12.13+hotfix.8 at /Users/iosappjingda/Documents/flutter • Framework revision 0b8abb4724 (13 days ago), 2020-02-11 11:44:36 -0800 • Engine revision e1e6ced81d • Dart version 2.7.0

    [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) • Android SDK at /Users/iosappjingda/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-29, build-tools 29.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) • All Android licenses accepted.

    [✓] Xcode - develop for iOS and macOS (Xcode 11.3.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 11.3.1, Build version 11C504 • CocoaPods version 1.8.4

    [✓] Android Studio (version 3.5) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 43.0.1 • Dart plugin version 191.8593 • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

    [✓] Connected device (1 available) • SM G9500 • 9889db424651533259 • android-arm64 • Android 9 (API 28)

    • No issues found!

    Describe the bug Running Gradle task 'assembleRelease'...
    Running Gradle task 'assembleRelease'... Done 179.0s (!) The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility. ✏️ Creating android/settings_aar.gradle...
    [!] Flutter tried to create the file android/settings_aar.gradle, but failed. To manually update settings.gradle, follow these steps:

    1. Copy `settings.gradle` as `settings_aar.gradle`
    2. Remove the following code from `settings_aar.gradle`:
    
            def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
    
            def plugins = new Properties()
            def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
            if (pluginsFile.exists()) {
                pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
            }
    
            plugins.each { name, path ->
                def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
                include ":$name"
                project(":$name").projectDir = pluginDirectory
            }
    

    Please create the file and run this command again.

    opened by k3v1n-uncle 11
  • [activity_recognition]: Activity recognition in background

    [activity_recognition]: Activity recognition in background

    Plugin name & version activity_recognition_flutter 1.2.0

    Describe the bug I am trying to use Activity recognition in the background. I am using for it plugin workmanager: ^0.2.2. but get the error. Is there a way to use activity_recognition_flutter plugin in the background?

    To Reproduce My code from the background task:

        ActivityRecognition.activityUpdates().listen((event) {
          print("Your phone is to ${event.confidence}% ${event.type}!");
        });
    

    Expected behavior Get activity event in the background

    Actual behavior Get this error: I/flutter (21074): ══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════ I/flutter (21074): The following MissingPluginException was thrown while activating platform stream on channel I/flutter (21074): activity_recognition/activityUpdates: I/flutter (21074): MissingPluginException(No implementation found for method listen on channel I/flutter (21074): activity_recognition/activityUpdates) I/flutter (21074): I/flutter (21074): When the exception was thrown, this was the stack: I/flutter (21074): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:154:7) I/flutter (21074): I/flutter (21074): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:329:12) I/flutter (21074): #2 EventChannel.receiveBroadcastStream. (package:flutter/src/services/platform_channel.dart:519:29) I/flutter (21074): #3 EventChannel.receiveBroadcastStream. (package:flutter/src/services/platform_channel.dart:505:64) I/flutter (21074): #8 _ActivityChannel.startActivityUpdates (package:activity_recognition_flutter/channel/activity_channel.dart:24:10) I/flutter (21074): #9 new _ActivityChannel (package:activity_recognition_flutter/channel/activity_channel.dart:16:42) I/flutter (21074): #10 ActivityRecognition._activityChannel (package:activity_recognition_flutter/activity_recognition_flutter.dart:17:35) I/flutter (21074): #11 ActivityRecognition._activityChannel (package:activity_recognition_flutter/activity_recognition_flutter.dart:17:16) I/flutter (21074): #12 ActivityRecognition.activityUpdates (package:activity_recognition_flutter/activity_recognition_flutter.dart:15:48) I/flutter (21074): #13 callbackDispatcher. (package:bacon/ui/screens/feed_screen.dart:77:29) I/flutter (21074): (elided 17 frames from dart:async) I/flutter (21074): ════════════════════════════════════════════════════════════════════════════════════════════════════ E/flutter (21074): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method startActivityUpdates on channel activity_recognition/activities) E/flutter (21074): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:154:7) E/flutter (21074): E/flutter (21074): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:329:12) E/flutter (21074): #2 _ActivityChannel.startActivityUpdates (package:activity_recognition_flutter/channel/activity_channel.dart:26:14) E/flutter (21074): #3 new _ActivityChannel (package:activity_recognition_flutter/channel/activity_channel.dart:16:42) E/flutter (21074): #4 ActivityRecognition._activityChannel (package:activity_recognition_flutter/activity_recognition_flutter.dart:17:35) E/flutter (21074): #5 ActivityRecognition._activityChannel (package:activity_recognition_flutter/activity_recognition_flutter.dart:17:16) E/flutter (21074): #6 ActivityRecognition.activityUpdates (package:activity_recognition_flutter/activity_recognition_flutter.dart:15:48) E/flutter (21074): #7 callbackDispatcher. (package:bacon/ui/screens/feed_screen.dart:77:29) E/flutter (21074): #8 _rootRunUnary (dart:async/zone.dart:1192:38) E/flutter (21074): #9 _CustomZone.runUnary (dart:async/zone.dart:1085:19) E/flutter (21074): #10 _FutureListener.handleValue (dart:async/future_impl.dart:141:18) E/flutter (21074): #11 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45) E/flutter (21074): #12 Future._propagateToListeners (dart:async/future_impl.dart:711:32) E/flutter (21074): #13 Future._completeWithValue (dart:async/future_impl.dart:526:5) E/flutter (21074): #14 Future._asyncComplete. (dart:async/future_impl.dart:556:7) E/flutter (21074): #15 _rootRun (dart:async/zone.dart:1184:13) E/flutter (21074): #16 _CustomZone.run (dart:async/zone.dart:1077:19) E/flutter (21074): #17 _CustomZone.runGuarded (dart:async/zone.dart:979:7) E/flutter (21074): #18 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1019:23) E/flutter (21074): #19 _microtaskLoop (dart:async/schedule_microtask.dart:43:21) E/flutter (21074): #20 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)

    bugfix 
    opened by vasiachess 10
  • app_usage plugins giving wrong times

    app_usage plugins giving wrong times

    Plugin name & version Using app_usage in last version.

    Describe the bug I create a double to get the total time spent on apps and get a huge number (47643 -> value given by last print, cf code used).

    To Reproduce Code Used: Future getTotalTime() async { double totalTime = 0; AppUsage appUsage = new AppUsage(); try { DateTime endDate = new DateTime.now(); DateTime startDate = DateTime( endDate.year, endDate.month, endDate.day, 0, 0, 0);

    Map<String, double> usage = await appUsage.fetchUsage(startDate, endDate);
    
    usage.removeWhere((key, value) => value == 0);
    usage.forEach((key, value) {
      print(key);
      print(value);
      totalTime += value;
    });
    

    } on AppUsageException catch (exception) { print(exception); }

    print(totalTime); return totalTime.round(); }

    Expected behavior The complete phone usage (addition of all times given)

    Actual behavior The print(total_time) gives a way to huge number in minutes. (47643)

    Flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, v1.17.5, on Microsoft Windows [version 10.0.19041.329], locale fr-FR)

    [√] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [√] Android Studio (version 4.0) [√] Connected device (1 available)

    • No issues found!

    Smartphone(s) / Emulator

    • Device: Huawei Mate 20
    • OS: Android 10 with EMUI 10.1
    opened by Volnetiks 9
  • [pedometer]: pedometer device no counting

    [pedometer]: pedometer device no counting

    [√] Flutter (Channel stable, v1.12.13+hotfix.7, on Microsoft Windows [Version 10.0.18363.778], locale ko-KR)

    [√] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [√] Android Studio (version 3.5) [√] Connected device (1 available)

    device -model: SM-J530K android version: 9 package version : 1.0.0

    I applied a sample source The step count number does not go up.

    opened by AHNHAEMOON 9
  • Health 3.03 - Help getting larger chunks of the health data on iOS.

    Health 3.03 - Help getting larger chunks of the health data on iOS.

    Thank you for this plugin.

    I would like to get larger chunks of health data from the iPhone into my app. The problem is that the app freezes for extending periods as it is accessing the phone health-kit. I am using async like the example uses. Unfortunately, "compute" does not work because it is accessing platform information.

    I was curious if others have developed any solutions to get large chunks of data with this plugin without freezing the app.

    improvement 
    opened by SurgeryAI 8
  • GoogleSignIn Pop-Up still appears, after successful permission request

    GoogleSignIn Pop-Up still appears, after successful permission request

    ### Device / Emulator and OS Please complete the following information for each phone and/or emulator you're experiencing this bug on:

    • Device: Emulator, Huawei Nova
    • OS: Android 11

    Describe the bug

    GoogleSignIn Pop-Up still appears after requesting the Permission for the GoogleFit Data, when requesting GoogleFit Data.

    To Reproduce

    First requestAuthorization for GoogleFitData (e.g. steps). Accept the dialog to give permission for the healthData. When calling getHealthDataFromTypes the googleSignIn Pop-Up shortly appears and then disappears. This happens everytime getHealthDataFromTypes is called. It looks like a short a black Frame appears for a second.

    Link to video that shows the bug: https://drive.google.com/file/d/1061W3nk3yPEE_rFQtEA4yhJp5IgoyBFZ/view?usp=sharing

    Flutter doctor

    [✓] Flutter (Channel unknown, 1.20.4, on Mac OS X 10.15.5 19F101, locale de-DE)

    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1) [✓] Xcode - develop for iOS and macOS (Xcode 12.2) [!] Android Studio (version 4.1) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. [✓] Connected device (1 available)

    ! Doctor found issues in 1 category.

    bugfix 
    opened by LoadJulz 8
  • [health 2.0.2] Google Play API Sign in failure

    [health 2.0.2] Google Play API Sign in failure

    Device / Emulator and OS

    • Device: Kyocera E6910
    • OS: Android 9

    Describe the bug

    Whenever I call HealthFactory().getHealthDataFromTypes() with any date range and type I get the prompt to choose an account and get a log message saying access was granted. However after the popup disappears the screen flashes, the app crashes, and I get the following error: com.google.android.gms.common.api.ApiException: 4: The user must be signed in to make this API call.

    To Reproduce

    • Create HealthFactory instance
    • Call getHealthDataFromTypes()
    • Grant app permission to use Google Fit

    Expected behavior

    Ability to read from Google Fit

    Actual behavior

    E/AndroidRuntime(14110): 	at com.google.android.gms.common.api.internal.GoogleApiManager$zaa.zac(com.google.android.gms:play-services-base@@17.1.0:175)
    E/AndroidRuntime(14110): 	at com.google.android.gms.common.api.internal.GoogleApiManager$zaa.onConnectionFailed(com.google.android.gms:play-services-base@@17.1.0:79)
    E/AndroidRuntime(14110): 	at com.google.android.gms.common.api.internal.GoogleApiManager$zaa.zag(com.google.android.gms:play-services-base@@17.1.0:60)
    E/AndroidRuntime(14110): 	at com.google.android.gms.common.api.internal.GoogleApiManager$zab.zag(com.google.android.gms:play-services-base@@17.1.0:10)
    E/AndroidRuntime(14110): 	at com.google.android.gms.common.api.internal.zace.zac(com.google.android.gms:play-services-base@@17.1.0:45)
    E/AndroidRuntime(14110): 	at com.google.android.gms.common.api.internal.zace.zaa(com.google.android.gms:play-services-base@@17.1.0:49)
    E/AndroidRuntime(14110): 	at com.google.android.gms.common.api.internal.zacg.run(com.google.android.gms:play-services-base@@17.1.0:2)
    E/AndroidRuntime(14110): 	at android.os.Handler.handleCallback(Handler.java:873)
    E/AndroidRuntime(14110): 	at android.os.Handler.dispatchMessage(Handler.java:99)
    E/AndroidRuntime(14110): 	at com.google.android.gms.internal.base.zar.dispatchMessage(com.google.android.gms:play-services-base@@17.1.0:8)
    E/AndroidRuntime(14110): 	at android.os.Looper.loop(Looper.java:193)
    E/AndroidRuntime(14110): 	at android.os.HandlerThread.run(HandlerThread.java:65)
    I/Process (14110): Sending signal. PID: 14110 SIG: 9
    

    Flutter doctor

    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel stable, 1.20.0, on Mac OS X 10.15.6 19G2021, locale en-US)
     
    [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    [✓] Xcode - develop for iOS and macOS (Xcode 11.6)
    [✓] Android Studio (version 3.6)
    [✓] VS Code (version 1.48.0)
    [✓] Connected device (2 available)
    
    • No issues found!
    

    Additional information

    I am able to use the FitKit plugin perfectly fine, so I know my permissions/OAuth credentials are setup properly.

    bugfix 
    opened by Matthew-Pitzer 8
  • I can't run as release mode on Android

    I can't run as release mode on Android

    Plugin name & version Which of the CACHET Flutter plugins is this issue related to and what is the version number. pedometer 1.2.0 Describe the bug When I use the command like: flutter run -d myDeviceId --release I've got the following error: FAILURE: Build failed with an exception.

    • Where:

    • What went wrong: A problem occurred evaluating root project 'android'.

    A problem occurred configuring project ':app'. AndroidX must be enabled when Jetifier is enabled. To resolve, set android.useAndroidX=true in your gradle.properties file.

    opened by matheus7mm 7
  • [Health] crash in SwiftHealthPlugin.getData

    [Health] crash in SwiftHealthPlugin.getData

    Plugin name & version health: 1.0.2

    Describe the bug Frequent crashes.

    To Reproduce Use plugin while the screen is locked.

    Screenshots image image

    Flutter doctor

    [✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.4 19E287, locale en-EE)
        • Flutter version 1.17.1 at /Users/silver/flutter
        • Framework revision f7a6a7906b (13 days ago), 2020-05-12 18:39:00 -0700
        • Engine revision 6bc433c6b6
        • Dart version 2.8.2
    
    [✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Xcode 11.4.1, Build version 11E503a
        • CocoaPods version 1.9.1
    

    Smartphone(s) / Emulator iPhone 11 iOS 13.4.1

    Additional context #​8 0x1042cee0c in partial apply for closure #​1 in SwiftHealthPlugin.getData(call:result:) at ~/.pub-cache/hosted/pub.dartlang.org/health-1.0.2/ios/Classes/SwiftHealthPlugin.swift:103

    opened by ristiisa 7
  • [health 4.4.0] Add sampling frequency to ElectrocardiogramHealthValue

    [health 4.4.0] Add sampling frequency to ElectrocardiogramHealthValue

    Description

    The HKElectrocardiogram class from the Apple HealthKit also exposes the sampling frequency of the ECG. This information is currently not being mapped into the ElectrocardiogramHealthValue and it is, hence, lost on the way.

    Additional information

    As a solution to this, the proposal is to simply map the sampling frequency as a double and map it on the dart side as an optional double value (double?).

    I will proceed to open a PR with the required changes.

    improvement 
    opened by lucaspal 0
  • [Movisens] How do I set the User Data?

    [Movisens] How do I set the User Data?

    When I read the docs on the calculation of MET and MET_LEVEL at

    • https://docs.movisens.com/BluetoothLowEnergy/#physical-activity

    it is stated that;

    Needs characteristics age, gender, weight, height and sensor_location to be set in user_data service!

    However, when I look at the UserDataService I can only set the age and sensorLocation parameters. How do I set the gender and weight ?

    question / clarification 
    opened by bardram 0
  • [Health 4.4.0] Abillity to convert totalDistance to prefered HealthDataUnit, or list of possible values needed

    [Health 4.4.0] Abillity to convert totalDistance to prefered HealthDataUnit, or list of possible values needed

    Description

    Currently, the totalDistanceUnit is of type HealthDataUnit. This data type has many units, like liters, meters, miles, inches_of_mercury, etc. Obviously only some of these apply to distance as a unit.

    I would like to see a list of all the different HealthDataUnit value the totalDistanceUnit can be.

    Mainly because I want to convert the value of totalDistance to meters. So some function to convert the totalDistance to some HealthDataUnit would work as well!

    improvement 
    opened by thomasmol 0
  • Add delete() and writeBloodPressure() functions

    Add delete() and writeBloodPressure() functions

    Two new functions which were discussed in https://github.com/cph-cachet/flutter-plugins/issues/642 and https://github.com/cph-cachet/flutter-plugins/issues/588

    delete() - allows to delete a record of a given type in a period (Android and iOS) writeBloodPressure() - allows to save blood pressure in one call (Android only, the current work on iOS)

    Also updated README and hasPermissions() removed from the requestAuthorization() on Android because it prevents requesting authorization in some cases as described in the issue mentioned in the commit.

    opened by rafaellop 0
Owner
Copenhagen Center for Health Technology (CACHET)
Copenhagen Center for Health Technology (CACHET)
Flutter-Apps-Collection: a collection of apps made in flutter for learning purpose

Flutter-Apps-Collection This is a repository of a collection of apps made in flutter for learning purpose Some Screenshots . . . Apps build in Flutter

Himanshu Singh 96 May 27, 2022
Flutter Community Plus Plugins

Flutter Community Plus Plugins Plus plugins PlusPlugins is a set of Flutter plugins that is developed based on existing Flutter plugins with extra fun

Flutter Community 1.1k Jan 3, 2023
Flutter plugins created by Rody Davis

Flutter plugins by @rodydavis This repo contains the source code for Flutter third-party plugins (i.e., plugins developed by Rody Davis). Check the pa

Rody Davis 479 Dec 28, 2022
Starter project for Flutter plugins willing to access native and synchronous rust code using FFI

Flutter Rust FFI Template This project is a Flutter Plugin template. It provides out-of-the box support for cross-compiling native Rust code for all a

Jør∂¡ 561 Dec 7, 2022
This package helps developer to sort the flutter/dart packages and plugins alphabetically, This makes it easier when managing too many packages and when working with teams

Package helps to sort the flutter/dart packages and plugins alphabetically, This makes it easier when managing too many packages and when working with

DANCHE 7 Dec 21, 2022
A library for creating StreamDeck plugins in Dart.

package:streamdeck A Dart package for building plugins for the Elgato Stream Deck in Dart. Create actions that extend from StreamDeckPluginAction and

Danny Tuppeny 5 Jan 3, 2023
This repository contains Collection of UIs made using Flutter. Original Design of all the UIs were created by someone else. I tried to recreate those UIs using Flutter

Flutter-UIs-Collection This repository contains Collection of UIs made using Flutter. Original Design of all the UIs were created by someone else. I t

Mohak Gupta 45 Nov 26, 2022
Awesome Flutter Snippets is a collection snippets and shortcuts for commonly used Flutter functions and classes

Awesome Flutter Snippets Awesome Flutter Snippets is a collection of commonly used Flutter classes and methods. It increases your speed of development

Neevash Ramdial (Nash) 139 Dec 9, 2022
Collection of cool Layouts built with Flutter to Inspire Other UI developers and explore the possibilities of Flutter.

Awesome_Flutter_Layouts Would you like to Contribute your Designs? Please refer the Contribution guidelines before you dive In Need help? or Looks Som

Mahesh Jamdade 103 Nov 22, 2022
John Pfister 2 Feb 25, 2022
Flutter app for collection of UI in a UIKit

Flutter UIKit The goal of this project is to provide an ultimate collection of real world app's UIs. While I built Flutter UIKit for my own needs, it

Pawan Kumar 6k Jan 8, 2023
A collection of Animations that aims to improve the user experience for your next flutter project.

Flutter Animations A collection of Animations that aims to improve the user experience for your next flutter project. Built by Ezaldeen SAHB I hope th

Ezaldeen Sahb 134 Dec 24, 2022
A collection of pixel-perfect iOS-styled components and properties for Flutter, following the official guidelines.

cupertinew ⚠️ Experimental and work in progress ⚠️ A collection of pixel-perfect iOS-styled components and properties for Flutter, following the offic

Jeroen Meijer (Jay) 30 Nov 10, 2022
A collection of Flutter apps with some useful tricks

Flutter Apps Collection A simple collection of flutter applications with some common use cases & useful little tricks. The apps have been tested in iO

Anis Benna 5 May 12, 2022
A collection of stylish animated dialogs like Normal, Progress, Success, Info, Warning, and Error for flutter.

stylish_dialog A collection of stylish animated dialogs like Normal, Progress, Success, Info, Warning, and Error for flutter. Showcase ⭐ Installing de

Marsad Maqsood 5 Nov 8, 2022
A Huge Collection of Flutter App templates

Awesome Flutter Templates A Collection of Flutter Application templates. Flutter is Google’s UI toolkit for building beautiful, natively compiled appl

Lokesh Jangid 70 Dec 22, 2022
EZ Flutter is a collection of widgets, packages and many more usefull things, mixed up in little framework.

(Alpha) EZ Flutter is a collection of widgets, packages and many more usefull things, mixed up in a little framework. The aim is to make standard feat

null 65 Nov 5, 2022
A collection of templates to make new Flutter components using the Mason build tool.

Mason Flutter Templates A collection of templates to make new Flutter components using the Mason build tool. Setup in Project To use these templates i

Marcus Twichel 5 Jun 21, 2022
A collection of useful packages maintained by the Flutter team

Flutter Packages This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., package

Flutter 2.3k Dec 30, 2022