flutter-plugin

How to access camera frames in flutter quickly

为君一笑 提交于 2019-12-05 05:54:11
I would like to implement near real-time OCR on the camera feed of my flutter app. To do this I would like to access the camera data in a speedy manner. As far as I can tell I have two options, and have hit roadblocks with both: Take a screenshot of the CameraPreview by putting a RepaintBoundary around it and creating a RenderRepaintBoundary , and calling boundary.toImage() . The problem with this method is that the .toImage method only seems to capture the painted widgets in the boundary and not the data from the camera preview. Simmilar to the issue described here: https://github.com/flutter

How to enable Swift support for existing project in flutter

天大地大妈咪最大 提交于 2019-12-03 23:36:08
I want to know if there is a way to enable swift support for flutter project. I only enabled Kotlin support while creating the project. I need to enable Swift too. Is there a command I can execute or any setting in flutter plugin for Android studio where I can enable or is there is an option to enable in Xcode? This is what I want to do but for existing Flutter project Well, I search the same thing now, also I enable the kotlin support... so, how to enable swift or kotlin support for a existing proyect? For swift support, you need to move your ios folder to outside of your project folder, if

Invoke Flutter (Dart) code from native Android home screen widget

为君一笑 提交于 2019-12-03 16:23:08
问题 I added a native Android home screen widget to my Flutter application. In my AppWidgetProvider implementation, I'd like to call dart code in my onUpdate() method using a platform channel. Is this possible? If so, how can this be achieved? My current Android (Java) code: package com.westy92.checkiday; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.util.Log; import io.flutter.plugin.common.MethodChannel;

Invoke Flutter (Dart) code from native Android home screen widget

拜拜、爱过 提交于 2019-12-03 05:45:18
I added a native Android home screen widget to my Flutter application. In my AppWidgetProvider implementation, I'd like to call dart code in my onUpdate() method using a platform channel. Is this possible? If so, how can this be achieved? My current Android (Java) code: package com.westy92.checkiday; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.util.Log; import io.flutter.plugin.common.MethodChannel; import io.flutter.view.FlutterNativeView; public class HomeScreenWidget extends AppWidgetProvider { private

Check whether there is an Internet connection available on Flutter app

心已入冬 提交于 2019-11-26 06:37:52
问题 I have a network call to be executed. But before doing that I need to check whether the device have internet connectivity. This is what i have done so far: var connectivityResult = new Connectivity().checkConnectivity();// User defined class if (connectivityResult == ConnectivityResult.mobile || connectivityResult == ConnectivityResult.wifi) {*/ this.getData(); } else { neverSatisfied(); } Above method is not working. 回答1: The connectivity plugin states in its docs that it only provides