From 5d3241829e09a46a3580929b52c33e0691856b03 Mon Sep 17 00:00:00 2001 From: tsuyoshi-chujo Date: Thu, 25 Mar 2021 17:16:38 +0900 Subject: [PATCH] version up for 0.5.1 --- CHANGELOG.md | 3 +++ README.md | 3 ++- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fca2902..00abf7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [0.5.0] - 2021.03.25 +* Enable to set initial cropping area with `initialArea` property. + ## [0.5.0] - 2021.03.18 * Enable to configure corner Dots with whatever Widget. * Enable to configure cropping mask colors and base colors. diff --git a/README.md b/README.md index 2718ef7..d65645f 100644 --- a/README.md +++ b/README.md @@ -77,13 +77,14 @@ Widget build(BuildContext context) { - `aspectRatio` is the aspect ratio of cropping area. Set `null` or just omit if you want to crop images with any aspect ratio. - `aspectRatio` can be changed dynamically via setter of `CropController.aspectRatio`. (see below) - `initialSize` is the initial size of cropping area. `1.0` (or `null`, by default) fits the size of image, which means cropping area extends as much as possible. `0.5` would be the half. This value is also referred when `aspectRatio` changes via `CropController.aspectRatio`. +- `initialArea` is the initial `Rect` of cropping area based on actual image data. - `withCircleUi` flag is to decide the shape of cropping UI. If `true`, `aspectRatio` is automatically set `1.0` and the shape of cropping UI would be circle. Note that this flag does NOT affect to the result of cropping image. If you want cropped images with circle shape, call `CropController.cropCircle` instead of `CropController.crop`. - `baseColor` is the color of the mask widget which is placed over the cropping editor. - `maskColor` is the color of the base color of the cropping editor. - `onMoved` callback is called when cropping area is moved regardless of its reasons. `newRect` of argument is current `Rect` of cropping area. - `cornerDotBuilder` is the builder to build Widget placed at corners. The builder passes `size` which widget must follow and `cornerIndex` which indicates the position: 0: left-top, 1: right-top, 2: left-bottom, 3: right-bottom. -In addition, `image`, `aspectRatio`, `withCircleUi` and `rect` can also be changed via `CropController`, and other properties, such as `baseColor`, `maskColor` and `cornerDotBuilder`, can be changed by `setState`. +In addition, `image`, `aspectRatio`, `withCircleUi`, `rect` and `area` can also be changed via `CropController`, and other properties, such as `baseColor`, `maskColor` and `cornerDotBuilder`, can be changed by `setState`. # Contact diff --git a/pubspec.yaml b/pubspec.yaml index fa33072..94aeb89 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: crop_your_image description: crop_your_image helps your app to embed Widgets for cropping images. -version: 0.5.0 +version: 0.5.1 homepage: https://github.com/chooyan-eng/crop_your_image environment: