camera_pkg 0.0.5 copy "camera_pkg: ^0.0.5" to clipboard
camera_pkg: ^0.0.5 copied to clipboard

outdated

Camera package combined with image quality compressor and cropper.

Features #

List what your package can do. Maybe include images, gifs, or videos.

Getting started #

  • Display live camera preview in a widget.
  • Snapshots can be captured and saved to a file.
  • Custom image quality compressor.
  • Image cropper

installation #

  • Camera permission in androidmanifest
  • Add following crop conditions in manifest :
   <uses-permission android:name="android.permission.CAMERA"/>

<activity
android:name="com.yalantis.ucrop.UCropActivity"
android:screenOrientation="portrait"
android:theme=
"
@style/Theme.AppCompat.Light.
NoActionBar
"
/
>

Usage #

To Use the package firstly navigate to the particular class. Here which is CameraControl() and define the image quality as per requirement from 0 to 100.

 Navigator.push
(
context,
MaterialPageRoute(
builder: (context) => CameraControl(
compressQuality: 50,
))).then((value) {
setState(() {
selected_image = File(value.path); 
//selected_image is a local variable where the image will be stored
});
print(selected_image!.path);
});

Additional information #

Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.

2
likes
0
points
71
downloads

Publisher

unverified uploader

Weekly Downloads

Camera package combined with image quality compressor and cropper.

License

unknown (license)

Dependencies

camera, flutter, image_cropper, video_player

More

Packages that depend on camera_pkg