Search packages, repositories and app categories

camera_camera cover
Package detailsv3.0.0

camera_camera

The easy plugin camera for your project, platforms Android and iOS.

AndroidiOS
30-day downloads
879
Likes
185
Pub points
130

Install package

flutter pub add camera_camera

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The camera_camera package is a straightforward Flutter plugin designed to simplify camera integration in Android and iOS applications. It provides an easy-to-use interface for accessing device cameras, enabling developers to capture photos and videos with minimal setup. Built with developer experience in mind, it handles platform-specific complexities behind the scenes, making it ideal for projects requiring basic camera functionality without extensive configuration. The package is actively maintained and open-source, allowing community contributions and transparency.

Use cases

  • Simple photo capture
  • Video recording
  • Basic camera integration
  • Cross-platform mobile apps
  • Quick prototyping

Key features

  • Easy setup
  • Android and iOS support
  • Minimal configuration
  • Open-source
  • Active maintenance

Suitable for

  • Beginner Flutter developers
  • Projects needing basic camera access
  • Rapid app development
  • Mobile apps with image capture needs
  • Lightweight camera solutions

Considerations

  • Limited advanced features
  • No support for web or desktop
  • Depends on native camera APIs
  • Not suitable for complex camera workflows
  • Requires proper permissions handling

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package