flutter 调用摄像头
Writing a camera application in Flutter is a pretty simple task, however when developing an app in Flutter, that is heavily focused on using the camera, I think I am obliged to mention that the default camera plugin from Flutter. Is not really fully functional, we at Lightsnap had to create our own version of it by forking their plugin and make some modifications to support features like: flash, auto exposure and focus.
w ^ riting在扑了相机的应用程序是一个非常简单的任务,在发展的颤应用程序,那就是高度集中于使用相机然而,当,我想我不得不提一提,从扑默认摄像头插件。 并不是真正功能齐全, Lightsnap的我们必须通过分叉其插件来创建自己的版本,并进行一些修改以支持以下功能:闪光灯,自动曝光和对焦。
When we posted our app in r/flutterDev there was a request from a user there that we would share how we created the UI of our application, so we decided to write a little bit on how we achieved things, we’ll be writing it two parts. The first part will just cover the camera itself and the second part will be about the camera controls.
当我们在r / flutterDev中发布应用程序时 那里有一个用户的请求,我们将分享我们如何创建应用程序UI的方法,因此我们决定写一些关于如何实现目标的内容,我们将其分为两个部分。 第一部分将仅覆盖相机本身,第二部分将涉及相机控件。
Unfortunately we won’t go into how we created the previous version. But we think the new one is much cooler and why not share the way we created that one instead 😄
不幸的是,我们将不介绍如何创建先前版本。 但是我们认为新产品更酷,为什么不分享我们创建新产品的方式😄
我们的用户界面 (Our user interface)
In our previous version of Lightsnap we had a bottom drawer t