Skip to content

Commit

Permalink
Allow users to set their own offset so it will be easy to maintain in…
Browse files Browse the repository at this point in the history
… multiple image-switching scenarios.

allow users to set their own offset so it will be easy to maintain in multiple image-switching scenarios.
  • Loading branch information
MirzamMoin9183 committed May 8, 2023
1 parent 677255e commit a50b4a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/crop_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ class CropController extends ChangeNotifier {
double aspectRatio = 1.0,
double scale = 1.0,
double rotation = 0,
Offset offset = Offset.zero
}) {
_aspectRatio = aspectRatio;
_scale = scale;
_rotation = rotation;
_offset = offset;
}
double _aspectRatio = 1;
double _rotation = 0;
Expand Down

0 comments on commit a50b4a3

Please sign in to comment.