Skip to content

Commit

Permalink
chore: 0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
renancaraujo committed Apr 17, 2024
1 parent 163f383 commit a6f2d5a
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 20 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
<a name="0.15.0"></a>
# [0.15.0](https://github.com/bluefireteam/photo_view/releases/tag/0.15.0) - 17 Apr 2024

## Added
- Added pageSnapping option #542
- make scale more smoothly #450
- Add possibility to restrict user scale #537
- Pass through semanticLabel #530

[Changes][0.15.0]



<a name="0.14.0"></a>
# [0.14.0](https://github.com/bluefireteam/photo_view/releases/tag/0.14.0) - 24 May 2022

Expand Down Expand Up @@ -373,6 +386,7 @@ With this version, Photo view is stable compatible. It means that every new rele
[Changes][0.2.1]


[0.15.0]: https://github.com/bluefireteam/photo_view/compare/0.14.0...0.15.0
[0.14.0]: https://github.com/bluefireteam/photo_view/compare/0.13.0...0.14.0
[0.13.0]: https://github.com/bluefireteam/photo_view/compare/0.12.0...0.13.0
[0.12.0]: https://github.com/bluefireteam/photo_view/compare/0.11.1...0.12.0
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2020 Renan C. Araújo
Copyright 2024 Renan C. Araújo

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Even though being super simple to use, PhotoView is extremely customizable thoug

## Installation

Add `photo_view` as a dependency in your pubspec.yaml file ([what?](https://flutter.io/using-packages/)).
Add `photo_view` as a dependency in your pubspec.yaml file.

Import Photo View:
```dart
Expand Down
Binary file removed bin/changelog-from-release
Binary file not shown.
Binary file removed bin/changelog-from-release-mac
Binary file not shown.
5 changes: 3 additions & 2 deletions lib/src/core/photo_view_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,9 @@ class PhotoViewCoreState extends State<PhotoViewCore>
final double newScale = _scaleBefore! * details.scale;
final Offset delta = details.focalPoint - _normalizedPosition!;

if (widget.strictScale && (newScale > widget.scaleBoundaries.maxScale ||
newScale < widget.scaleBoundaries.minScale)) {
if (widget.strictScale &&
(newScale > widget.scaleBoundaries.maxScale ||
newScale < widget.scaleBoundaries.minScale)) {
return;
}

Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: photo_view
description: Photo View provides a gesture sensitive zoomable widget. Photo View is largely used to show interactive images and other stuff such as SVG.
version: 0.14.0
version: 0.15.0
homepage: https://github.com/renancaraujo/photo_view

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.12.0 <4.0.0"
flutter: ">=1.6.0"

dependencies:
Expand Down
14 changes: 0 additions & 14 deletions scripts/format.sh

This file was deleted.

0 comments on commit a6f2d5a

Please sign in to comment.