Giter Club home page Giter Club logo

camera_camera's Introduction

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

camera_camera's People

Contributors

gabuldev avatar gabrielsavio avatar matheusperez avatar creativecreatorormaybenot avatar mattermoran avatar andredealmei avatar jacobaraujo7 avatar jeaanlucas avatar theonewiththebraid avatar addyu avatar sobolevwladimir avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.