diff --git a/CHANGELOG.md b/CHANGELOG.md index 980e421..9d3deaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,33 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 2024-06-17 + +--- + +Packages with breaking changes: + +- There are no breaking changes in this release. + +Packages with other changes: + +- [`flutter_box_transform` - `v0.4.3`](#flutter_box_transform---v043) +- [`box_transform` - `v0.4.3`](#box_transform---v043) + +--- + +#### `flutter_box_transform` - `v0.4.3` + +- Update dependencies & resolve deprecation warnings. +- Added onTap event to BoxTransformController. (PR #23 by @joakimunge) +- Deny different transform operations when a box is already undergoing. +- Add optional `resizeModeResolver` override to `onResizeUpdate` in `TransformableBoxController`. + +### `box_transform` - `v0.4.3 + +- Update dependencies & resolve deprecation warnings. +- Fix a bug where terminal resize events triggered on the incorrect axis. + ## 2023-06-07 ### Changes @@ -150,7 +177,6 @@ Packages with other changes: - Fix broken links in docs. - Add tests for resizing features. - #### `flutter_box_transform` - `v0.3.0` - Bump up Dart sdk constraints to `3.0.0`. @@ -173,26 +199,25 @@ Packages with other changes: Packages with breaking changes: - - There are no breaking changes in this release. +- There are no breaking changes in this release. Packages with other changes: - - [`box_transform` - `v0.2.1`](#box_transform---v021) - - [`flutter_box_transform` - `v0.2.1`](#flutter_box_transform---v021) +- [`box_transform` - `v0.2.1`](#box_transform---v021) +- [`flutter_box_transform` - `v0.2.1`](#flutter_box_transform---v021) --- #### `box_transform` - `v0.2.1` - - Update license to Apache 2.0. - - Update docs and fix broken links. - +- Update license to Apache 2.0. +- Update docs and fix broken links. #### `flutter_box_transform` - `v0.2.1` - - Update license to Apache 2.0. - - Update playground to use unified clamping rect. - - Update docs and fix broken links. +- Update license to Apache 2.0. +- Update playground to use unified clamping rect. +- Update docs and fix broken links. ## 2023-04-07 @@ -202,24 +227,24 @@ Packages with other changes: Packages with breaking changes: - - [`flutter_box_transform` - `v0.2.0`](#flutter_box_transform---v020) +- [`flutter_box_transform` - `v0.2.0`](#flutter_box_transform---v020) Packages with other changes: - - [`box_transform` - `v0.2.0`](#box_transform---v020) +- [`box_transform` - `v0.2.0`](#box_transform---v020) --- #### `box_transform` - `v0.2.0` - - Fix scaling of rect not matching cursor position. +- Fix scaling of rect not matching cursor position. #### `flutter_box_transform` - `v0.2.0` - - Add `hideHandlesWhenNotResizable` flag to hide handles when the box is not - resizable by @timmaffett. - - BREAKING CHANGE: `TransformableBox.childBuilder` is now `TransformableBox.contentBuilder`. - - More advanced example with multiple boxes. +- Add `hideHandlesWhenNotResizable` flag to hide handles when the box is not + resizable by @timmaffett. +- BREAKING CHANGE: `TransformableBox.childBuilder` is now `TransformableBox.contentBuilder`. +- More advanced example with multiple boxes. ## 2023-04-04 @@ -229,23 +254,22 @@ Packages with other changes: Packages with breaking changes: - - There are no breaking changes in this release. +- There are no breaking changes in this release. Packages with other changes: - - [`box_transform` - `v0.1.1`](#box_transform---v011) - - [`flutter_box_transform` - `v0.1.1`](#flutter_box_transform---v011) +- [`box_transform` - `v0.1.1`](#box_transform---v011) +- [`flutter_box_transform` - `v0.1.1`](#flutter_box_transform---v011) --- #### `box_transform` - `v0.1.1` - - Add example. +- Add example. #### `flutter_box_transform` - `v0.1.1` - - Bump "flutter_box_transform" to `0.1.1`. - +- Bump "flutter_box_transform" to `0.1.1`. ## 2023-04-03 @@ -255,20 +279,20 @@ Packages with other changes: Packages with breaking changes: - - There are no breaking changes in this release. +- There are no breaking changes in this release. Packages with other changes: - - [`box_transform` - `v0.1.0`](#box_transform---v010) - - [`flutter_box_transform` - `v0.1.0`](#flutter_box_transform---v010) +- [`box_transform` - `v0.1.0`](#box_transform---v010) +- [`flutter_box_transform` - `v0.1.0`](#flutter_box_transform---v010) --- #### `box_transform` - `v0.1.0` - - Bump "box_transform" to `0.1.0`. +- Bump "box_transform" to `0.1.0`. #### `flutter_box_transform` - `v0.1.0` - - Bump "flutter_box_transform" to `0.1.0`. +- Bump "flutter_box_transform" to `0.1.0`. diff --git a/packages/box_transform/CHANGELOG.md b/packages/box_transform/CHANGELOG.md index 03dab66..9487ad3 100644 --- a/packages/box_transform/CHANGELOG.md +++ b/packages/box_transform/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.4.3 + +- Update dependencies & resolve deprecation warnings. +- Fix a bug where terminal resize events triggered on the incorrect axis. + ## 0.4.1 - Remove `DoubleExt` from package exports. diff --git a/packages/box_transform/pubspec.yaml b/packages/box_transform/pubspec.yaml index 531ebb6..f29c12c 100644 --- a/packages/box_transform/pubspec.yaml +++ b/packages/box_transform/pubspec.yaml @@ -1,7 +1,7 @@ name: box_transform description: A pure dart implementation of advanced 2D box transformation with easy and simple API. -version: 0.4.1 +version: 0.4.3 repository: https://github.com/hyper-designed/box_transform homepage: https://github.com/hyper-designed/box_transform @@ -13,9 +13,15 @@ environment: dependencies: vector_math: ^2.1.4 - meta: ^1.9.1 dev_dependencies: lints: ^4.0.0 - test: ^1.25.5 + test: ^1.25.7 coverage: ^1.8.0 + +topics: + - rectangle + - box + - transform + - utility + - tool diff --git a/packages/box_transform/test/alternating_constraints_resizing_test.dart b/packages/box_transform/test/alternating_constraints_resizing_test.dart index 1df2e2b..97f18cc 100644 --- a/packages/box_transform/test/alternating_constraints_resizing_test.dart +++ b/packages/box_transform/test/alternating_constraints_resizing_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/box_transform/test/available_area_clamping_test.dart b/packages/box_transform/test/available_area_clamping_test.dart index d3d1bb9..55626fb 100644 --- a/packages/box_transform/test/available_area_clamping_test.dart +++ b/packages/box_transform/test/available_area_clamping_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/box_transform/test/clamped_freeform_resizing_test.dart b/packages/box_transform/test/clamped_freeform_resizing_test.dart index a5f268a..abdbf22 100644 --- a/packages/box_transform/test/clamped_freeform_resizing_test.dart +++ b/packages/box_transform/test/clamped_freeform_resizing_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/box_transform/test/clamped_scaled_resizing_test.dart b/packages/box_transform/test/clamped_scaled_resizing_test.dart index 0110625..10c5143 100644 --- a/packages/box_transform/test/clamped_scaled_resizing_test.dart +++ b/packages/box_transform/test/clamped_scaled_resizing_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/box_transform/test/clamped_symmetric_resizing_test.dart b/packages/box_transform/test/clamped_symmetric_resizing_test.dart index 0f20dd0..f1f2cb1 100644 --- a/packages/box_transform/test/clamped_symmetric_resizing_test.dart +++ b/packages/box_transform/test/clamped_symmetric_resizing_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/box_transform/test/clamped_symmetrically_scaled_resizing_test.dart b/packages/box_transform/test/clamped_symmetrically_scaled_resizing_test.dart index 8f04d88..a8488a0 100644 --- a/packages/box_transform/test/clamped_symmetrically_scaled_resizing_test.dart +++ b/packages/box_transform/test/clamped_symmetrically_scaled_resizing_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/box_transform/test/freeform_constrained_resizing_test.dart b/packages/box_transform/test/freeform_constrained_resizing_test.dart index 901baed..0200105 100644 --- a/packages/box_transform/test/freeform_constrained_resizing_test.dart +++ b/packages/box_transform/test/freeform_constrained_resizing_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/box_transform/test/freeform_resizing_test.dart b/packages/box_transform/test/freeform_resizing_test.dart index 40c18d8..cf10695 100644 --- a/packages/box_transform/test/freeform_resizing_test.dart +++ b/packages/box_transform/test/freeform_resizing_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/box_transform/test/no_flip_constrained_resizing_test.dart b/packages/box_transform/test/no_flip_constrained_resizing_test.dart index e94975e..312eee6 100644 --- a/packages/box_transform/test/no_flip_constrained_resizing_test.dart +++ b/packages/box_transform/test/no_flip_constrained_resizing_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/box_transform/test/portrait_constrained_resizing_test.dart b/packages/box_transform/test/portrait_constrained_resizing_test.dart index f50a06f..1257b3c 100644 --- a/packages/box_transform/test/portrait_constrained_resizing_test.dart +++ b/packages/box_transform/test/portrait_constrained_resizing_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/box_transform/test/portrait_test.dart b/packages/box_transform/test/portrait_test.dart index 5934429..c718214 100644 --- a/packages/box_transform/test/portrait_test.dart +++ b/packages/box_transform/test/portrait_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/box_transform/test/scaled_constrained_resizing_test.dart b/packages/box_transform/test/scaled_constrained_resizing_test.dart index 309b2de..8369869 100644 --- a/packages/box_transform/test/scaled_constrained_resizing_test.dart +++ b/packages/box_transform/test/scaled_constrained_resizing_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/box_transform/test/scaled_resizing_test.dart b/packages/box_transform/test/scaled_resizing_test.dart index d0c8926..8882111 100644 --- a/packages/box_transform/test/scaled_resizing_test.dart +++ b/packages/box_transform/test/scaled_resizing_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/box_transform/test/symmetric_constrained_resizing_test.dart b/packages/box_transform/test/symmetric_constrained_resizing_test.dart index 98b0ae4..5182d44 100644 --- a/packages/box_transform/test/symmetric_constrained_resizing_test.dart +++ b/packages/box_transform/test/symmetric_constrained_resizing_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/box_transform/test/symmetric_resizing_test.dart b/packages/box_transform/test/symmetric_resizing_test.dart index 584d0b7..0c6e909 100644 --- a/packages/box_transform/test/symmetric_resizing_test.dart +++ b/packages/box_transform/test/symmetric_resizing_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/box_transform/test/symmetrically_scaled_constrained_resizing_test.dart b/packages/box_transform/test/symmetrically_scaled_constrained_resizing_test.dart index 6c8e288..ed90ac3 100644 --- a/packages/box_transform/test/symmetrically_scaled_constrained_resizing_test.dart +++ b/packages/box_transform/test/symmetrically_scaled_constrained_resizing_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/box_transform/test/symmetrically_scaled_resizing_test.dart b/packages/box_transform/test/symmetrically_scaled_resizing_test.dart index 3120ba0..0a83738 100644 --- a/packages/box_transform/test/symmetrically_scaled_resizing_test.dart +++ b/packages/box_transform/test/symmetrically_scaled_resizing_test.dart @@ -1,6 +1,7 @@ +import 'package:box_transform/box_transform.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart'; -import 'package:box_transform/box_transform.dart'; + import 'utils.dart'; void main() { diff --git a/packages/flutter_box_transform/CHANGELOG.md b/packages/flutter_box_transform/CHANGELOG.md index 4401e16..bcaac93 100644 --- a/packages/flutter_box_transform/CHANGELOG.md +++ b/packages/flutter_box_transform/CHANGELOG.md @@ -1,3 +1,10 @@ +## 0.4.3 + +- Update dependencies & resolve deprecation warnings. +- Added onTap event to BoxTransformController. (PR #23 by @joakimunge) +- Deny different transform operations when a box is already undergoing. +- Add optional `resizeModeResolver` override to `onResizeUpdate` in `TransformableBoxController`. + ## 0.4.2 - Fix an issue where visibleHandles disabled the handles instead of hiding them but keeping them enabled. diff --git a/packages/flutter_box_transform/playground/pubspec.yaml b/packages/flutter_box_transform/playground/pubspec.yaml index a7806f8..2b94ea3 100644 --- a/packages/flutter_box_transform/playground/pubspec.yaml +++ b/packages/flutter_box_transform/playground/pubspec.yaml @@ -12,12 +12,12 @@ dependencies: flutter: sdk: flutter adaptive_theme: ^3.6.0 - url_launcher: ^6.2.6 + url_launcher: ^6.3.0 provider: ^6.1.2 equatable: ^2.0.5 dart_style: ^2.3.6 vector_math: ^2.1.4 - file_picker: ^8.0.3 + file_picker: ^8.0.5 flutter_box_transform: path: ../ diff --git a/packages/flutter_box_transform/pubspec.yaml b/packages/flutter_box_transform/pubspec.yaml index 274d58f..8c3688a 100644 --- a/packages/flutter_box_transform/pubspec.yaml +++ b/packages/flutter_box_transform/pubspec.yaml @@ -1,7 +1,7 @@ name: flutter_box_transform description: A Flutter implementation of box_transform package that provides easy 2D box transform operations with advanced resizing of rect in UI. -version: 0.4.2 +version: 0.4.3 repository: https://github.com/hyper-designed/box_transform homepage: https://github.com/hyper-designed/box_transform @@ -24,3 +24,10 @@ dev_dependencies: flutter_lints: ^4.0.0 flutter: + +topics: + - rectangle + - box + - transform + - utility + - flutter