image_capture_field 0.3.0 copy "image_capture_field: ^0.3.0" to clipboard
image_capture_field: ^0.3.0 copied to clipboard

ImageCaptureField is as easy-to-use as a TextField which works with it's own controller to take image input with inbuilt optional image cropper

image_capture_field #

ImageCaptureField is as easy-to-use as a TextField which works with it's own controller to take image input with inbuilt optional image cropper

Simple to use: Just Follow below 2 steps #

Step 1. Define a ImageCaptureController #

final _controller = ImageCaptureController();

Step 2. Put as a child of any widget or may be as one of the children of a Column #

Just like below Code put it anywhere in your code

ImageCaptureField(
    controller: _controller,
),

And it is DONE. You can NOW pick any image. #

Access Image Data (Uint8List) by,

_controller.imageData

Access Name of the Image can be found,

_controller.imageName

And Know whether there is any image already picked or not,

_controller.isBlank

Methods in the ImageCaptureController are #

To clear the data stored in the ImageCaptureController

_controller.clear();

Crop functionality added #

You can use it by passing the property in the ImageCaptureField(): #

includeCropper: true

To fix cropper aspect ratio #

cropAspectRatio : (width/height)   or,   any ratio in double

Some Screenshots #

1    2    3    4    5    6   

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

18
likes
130
points
78
downloads

Publisher

verified publisherhalfmadcoder.com

Weekly Downloads

ImageCaptureField is as easy-to-use as a TextField which works with it's own controller to take image input with inbuilt optional image cropper

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

crop_your_image, flutter, get, image_picker

More

Packages that depend on image_capture_field