搜索插件、代码仓与 APP 分类

GitHub 代码仓gabuldev/camera_camera

camera_camera

gabuldev/camera_camera open-source repository details.

camera_camera 项目封面
星标
108
复刻
85
最近推送(UTC)
2024年4月10日
项目状态
未归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

Camera_Camera 3.0

New Features!

  • Add Feature Zoom!
  • Add Feature FlashMode
  • Add Support from Web!
  • Add Feature Change Camera, and seletec the CameraSide your prefer activated!
  • CallBack for return File your photo, onFile(File yourFile)
  • Removed return using Navigator.pop(context,file)
  • Refactor in internal structure

example

Guide for instalation

Android

You need add in app/build.gradle

minSdkVersion 21

IOS

You need add in info.plist

  	<key>NSCameraUsageDescription</key>
    <string>Can I use the camera please?</string>
    <key>NSMicrophoneUsageDescription</key>
    <string>Can I use the mic please?</string>

Flutter

Add package in pubspec.yaml

camera_camera: current_version

How to use

Camera_Camera is widget, you can use anywhere

Example 01

return Scaffold(
      body: CameraCamera(
        onFile: (file) => print(file);
      )
);

Example 02

return Scaffold(
      body: CameraCamera(
        onFile: (file) => print(file);
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: (){
           Navigator.push(
        context,
        MaterialPageRoute(
            builder: (_) => CameraCamera(
                  onFile: (file) {
                    photos.add(file);
                    //When take foto you should close camera
                    Navigator.pop(context);
                    setState(() {});
                  },
                )))
        },
        child: Icon(Icons.camera_alt),
      ),
);

Roadmap 3.0

Feature Progress
Zoom ✅
Flash ✅
CameraSide select ✅
Nullsafety support ✅
Web support (beta) ✅
Desktop support
Custom Layouts
Add Exposure controll
Add Easy Mode Video
Add Gallery

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Gabul - GDE Flutter & Dart GitHub avatar
GitHub 作者

Gabul - GDE Flutter & Dart ↗

Founder of Gabuldev, Specialist in Mobile Development, participates in the Google Developer Expert in Flutter & Dart, organizer of the GDG Nova Lima

Brazil
语言DartC++CMakeHTMLRubyCShellSwiftKotlinObjective-C

此仓库发布的插件

使用的依赖

依赖清单 5 项

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗