且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何制作可在KitKat中运行的抖动相机应用程序?

更新时间:2023-11-17 12:35:22

该程序包的代码:

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