Skip to content

Commit

Permalink
Fix #26
Browse files Browse the repository at this point in the history
  • Loading branch information
deakjahn committed Jun 2, 2023
1 parent 60eda95 commit b91aed7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [1.0.9] - 2023-06-02

* Fix [#26](https://github.com/deakjahn/crop_image/issues/26).

## [1.0.8] - 2023-05-17

* Revert to broader Flutter version range
Expand Down
2 changes: 0 additions & 2 deletions lib/src/crop_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'crop_rect.dart';
import 'crop_rotation.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:meta/meta.dart';

/// A controller to control the functionality of [CropImage].
class CropController extends ValueNotifier<CropControllerValue> {
Expand Down Expand Up @@ -100,7 +99,6 @@ class CropController extends ValueNotifier<CropControllerValue> {
ui.Image? _bitmap;
late Size _bitmapSize;

@internal
set image(ui.Image newImage) {
_bitmap = newImage;
_bitmapSize = Size(newImage.width.toDouble(), newImage.height.toDouble());
Expand Down
4 changes: 0 additions & 4 deletions lib/src/crop_rect.dart
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
import 'package:flutter/material.dart';
import 'package:meta/meta.dart';

@internal
extension RectExtensions on Rect {
@internal
Rect multiply(Size size) => Rect.fromLTRB(
left * size.width,
top * size.height,
right * size.width,
bottom * size.height,
);

@internal
Rect divide(Size size) => Rect.fromLTRB(
left / size.width,
top / size.height,
Expand Down
4 changes: 1 addition & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: crop_image
description: An image cropper widget, with 90-degree rotations. Supports mobile, web and desktop.
version: 1.0.8
version: 1.0.9
homepage: https://github.com/deakjahn/crop_image

environment:
Expand All @@ -11,8 +11,6 @@ dependencies:
flutter:
sdk: flutter

meta: ^1.9.1

dev_dependencies:
flutter_test:
sdk: flutter
Expand Down

0 comments on commit b91aed7

Please sign in to comment.