如何制作可在KitKat中运行的抖动相机应用程序? [英] How to make a flutter camera app that can run in KitKat?

查看:78
本文介绍了如何制作可在KitKat中运行的抖动相机应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作抖动相机应用程序.为此,我找到了一个名为camera的包 https://pub.dartlang.org/packages/camera 由flutter编写团队本身.但是,我发现那里存在严重的局限性.它的最低SDK版本为21.

查看我以前在Play商店中的应用程序的当前统计信息,我发现很多活跃用户正在使用运行带有SDK 19的KitKat的旧设备.

解决方案

该程序包的代码:

https://github.com/flutter/plugins/blob/master/packages/camera/android/src/main/java/io/flutter/plugins/camera/CameraPlugin.java

使用 Android Camera2 API

并从该线程中 https://github.com/flutter/flutter/issues/9310 您可以随意创建一个版本,该版本支持KitKat中可用的较早的Camera API.

I am trying to make a flutter camera app. For this, I found a package named camera https://pub.dartlang.org/packages/camera which has been written by the flutter team itself. But, I found a serious limitation there. It needs a minimum SDK version of 21.

Looking at the current statistics from my previous app in play store, I found that a lot of my active users are using older devices running KitKat which has SDK 19. How should I deal with this?

解决方案

The code for that package:

https://github.com/flutter/plugins/blob/master/packages/camera/android/src/main/java/io/flutter/plugins/camera/CameraPlugin.java

uses Android Camera2 API

and from this thread https://github.com/flutter/flutter/issues/9310 you are free to fork and create a version which supports the older Camera API available in KitKat

这篇关于如何制作可在KitKat中运行的抖动相机应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆