A New Version Of Camera_camera Package For Flutter

Overview

Camera_Camera 2.0

important

this is a new version of camera_camera package, I fixed in this version most of the camera bugs such as when the camera crash after changing device orientation and the crash when you take a screenshot and I reshaped the code to be more clean and easy to edit, feel free to contribute if you find any bugs write an issue on the git repos

New Features

  • Add Feature Zoom!
  • Add Feature FlashMode
  • 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 2.0

Feature Progress
Zoom
Flash
CameraSide select
nullsafety support
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

You might also like...

Learn about Firestore and new Google authentication for flutter

Learn about Firestore and new Google authentication for flutter

Google Firebase Services Note: Some parts are not committed and they are on working. It this practical project we learned Firebase Authentication and

Feb 12, 2022

A new Flutter Doctor Online Appointment application.

A new Flutter Doctor Online Appointment application.

Flutter Doctor Online Appointment App A new Flutter Doctor Online Appointment application. Designed by Gilang Segara, Code using Flutter by Abdul Aziz

Nov 21, 2022

An open sourced wordle built with flutter. A new puzzle is available every 6 hours.

An open sourced wordle built with flutter. A new puzzle is available every 6 hours.

Furdle (Flutter + Wordle) An open sourced wordle built with flutter. A new puzzle is available every 6 hours. Supports physical keyboard input Saves G

Jun 20, 2022

A new Flutter project. Blood Buddy is a mobile application designed to facilitate communication between donors and blood needs.

A new Flutter project. Blood Buddy is a mobile application designed to facilitate communication between donors and blood needs.

A new Flutter project. Blood Buddy is a mobile application designed to facilitate communication between donors and blood needs. The application includes two separate interfaces for hospital staff and donors.

Jun 15, 2022

No New Notifications App

nnn_app NNN podcast streamer Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this is

Dec 28, 2022

The ultimate baby monitor! This mobile app helps new parents keep track of all their newborn baby's needs, milestones, and reminders in one place!

New Parent The ultimate baby monitor! This mobile app helps new parents keep track of all their newborn baby's needs, milestones, and reminders in one

Jun 22, 2022

Self Host Group Chat App (firebase + clean architecture) is full functional group chat where you can create new groups and update profile and communicate in different groups easily. there 2 auth firebase method [Google & Email Password]

Self Host Group Chat App (firebase + clean architecture) is full functional group chat where you can create new groups and update profile and communicate in different groups easily. there 2 auth firebase method [Google & Email Password]

Self Host Group Chat App (firebase + clean architecture) Show some and star the repo to support the project Screenshots Packages we are using: flutter

Jan 8, 2023

A web dashboard that allows you to monitor your Chia farm and sends notifications when blocks are found and new plots are completed through a discord bot. It can link multiple farmers/harvesters to your account.

A web dashboard that allows you to monitor your Chia farm and sends notifications when blocks are found and new plots are completed through a discord bot. It can link multiple farmers/harvesters to your account.

farmr A web dashboard that allows you to monitor your Chia farm and sends notifications when blocks are found and new plots are completed through a di

Jan 2, 2023

abiye new const

abiyelik A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Nov 17, 2021
Releases(flutter)
Owner
yassine
An EEI student, physics and math enthusiast , C++ and android developer
yassine
A flutter app for a wordpress websites with clean and elegant design. This app is available in free and pro version. You can choose to use the one you need.

?? Get Flutter for Wordpress Flutter for wordpress is currently available in free and pro version: Flutter for Wordpress Flutter for Wordpress Pro Bea

mcyos118 18 Dec 13, 2022
Android/multiplatform version of the Clew App.

Android/multiplatform version of the Clew App.

Lani 1 Dec 30, 2021
'Efficacy' is a an Android app that keeps users updated on all events and happenings in and around the NITS campus. Note that the one in this repo is a slightly altered version of the original.

Efficacy : The proposed Android app for all clubs, events and happenings at NIT Silchar Get the release APK Some interesting features of this app incl

Gaurav Bhattacharjee 2 Aug 29, 2021
Draw the Year - Mobile version

drawtheyear_mobile A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you start

La Guirlande 0 May 28, 2022
Google IO Mobile Version (Fake)

fake_google_io Fake Google IO made with flutter (Not official!) Inspiration This application was made to enliven the Google I/O 2021 event which was h

Irvan Lutfi Gunawan 4 May 20, 2021
Mini version of a shopping application

shop_app A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Sammi 0 Dec 8, 2021
Create a mini version of MathJax using Grunt

Smaller MathJax for offline use This repo is based on the Gruntfile here and the guidance here. It's a good idea to read those pages before using this

Electric Book Works 4 May 22, 2020
A new Flutter Application to control self build lamps for my personal use.

A new Flutter Application to control self build lamps for my personal use. You need extra hardware & software for getting this project running. This is just the code of the App.

null 1 Mar 2, 2022
A new practical project made with Flutter and some native widgets, movie API, provider state and more.

Flutter Movie App This project was created with Flutter and some native Widgets like SingleChildScrollView, Hero Animation, SliverAppBar, StreamBuilde

Paúl 4 Jul 12, 2022
A library of Flutter to add a new style in the navigation bar.

Navigation Dot Bar Una libreria de Flutter, el cual agrega un BottomNavigationBar con un mejor estilo. Inspirada en la aplicacion "Reflectly" Como usa

null 38 Oct 17, 2022