Skip to content

Commit

Permalink
0.11.0 (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
renancaraujo authored and renancaraujo committed Mar 7, 2021
1 parent 0c75f31 commit d984512
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 92 deletions.
49 changes: 16 additions & 33 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
<a name="0.11.0"></a>
# [0.11.0](https://github.com/renancaraujo/photo_view/releases/tag/0.11.0) - 07 Mar 2021


## Added
- `initialScale` on controller #322 #289
- [Breaking] Sound null safety support thanks to @DevNico #375

## Removed
- `loadFailedChild` in favor of `errorBuilder`. #320 #287

[Changes][0.11.0]


<a name="0.10.3"></a>
# [0.10.3](https://github.com/renancaraujo/photo_view/releases/tag/0.10.3) - 15 Nov 2020

Expand Down Expand Up @@ -363,37 +377,7 @@ Minor bug fix
[Changes][0.1.1]


<a name="0.1.0"></a>
# [0.1.0](https://github.com/renancaraujo/photo_view/releases/tag/0.1.0) - 27 Nov 2018

Release stabilizing usage API.

## Fixed
- Warning when importing photo_view_scale_state #58
- Blank image when defining `heroTag` #57 #59

## Deprecated
- **[BREAKING]** `PhotoViewInline` class has been deprecated in favor of `PhotoView` only. #54 #53

## Changed
- **[BREAKING]** `size` option has been renamed to `customSize` #54
- **[BREAKING]** `backgroundColor` has been removed. Use `backgroundDecoration` instead. #56

## Removed
- **[BREAKING]** `PhotoViewGallery` is not exported by `PhotoView` anymore, import `package:photo_view/photo_view_gallery.dart`

## Added
- **Rotation gesture support**: use the option `enableRotation` to rotate the content as the user rotates the fingers in the pinch gesture. #36 #32

- **Custom child support**: added the constructor `PhotoView.customChild` which enables the user to show any widget instead of an image. #51 #55

- `initialScale` option #52 #29



[Changes][0.1.0]


[0.11.0]: https://github.com/renancaraujo/photo_view/compare/0.10.3...0.11.0
[0.10.3]: https://github.com/renancaraujo/photo_view/compare/0.10.2...0.10.3
[0.10.2]: https://github.com/renancaraujo/photo_view/compare/0.10.1...0.10.2
[0.10.1]: https://github.com/renancaraujo/photo_view/compare/0.10.0...0.10.1
Expand Down Expand Up @@ -422,7 +406,6 @@ Release stabilizing usage API.
[0.2.0]: https://github.com/renancaraujo/photo_view/compare/0.1.3...0.2.0
[0.1.3]: https://github.com/renancaraujo/photo_view/compare/0.1.2...0.1.3
[0.1.2]: https://github.com/renancaraujo/photo_view/compare/0.1.1...0.1.2
[0.1.1]: https://github.com/renancaraujo/photo_view/compare/0.1.0...0.1.1
[0.1.0]: https://github.com/renancaraujo/photo_view/tree/0.1.0
[0.1.1]: https://github.com/renancaraujo/photo_view/tree/0.1.1

<!-- Generated by changelog-from-release -->
3 changes: 1 addition & 2 deletions example/lib/screens/examples/controller_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ class _ControllerExampleState extends State<ControllerExample> {

@override
void initState() {
controller = PhotoViewController()
..scale = defScale
controller = PhotoViewController(initialScale: defScale)
..outputStateStream.listen(onController);

scaleStateController = PhotoViewScaleStateController()
Expand Down
46 changes: 23 additions & 23 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0-nullsafety.3"
version: "2.5.0"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0-nullsafety.3"
version: "2.1.0"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-nullsafety.5"
version: "1.1.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0-nullsafety.3"
version: "1.2.0"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-nullsafety.3"
version: "1.1.0"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0-nullsafety.5"
version: "1.15.0"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0-nullsafety.3"
version: "1.2.0"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -61,7 +61,7 @@ packages:
name: flutter_svg
url: "https://pub.dartlang.org"
source: hosted
version: "0.20.0-nullsafety.3"
version: "0.21.0-nullsafety.0"
flutter_test:
dependency: "direct dev"
description: flutter
Expand All @@ -73,21 +73,21 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10-nullsafety.3"
version: "0.12.10"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0-nullsafety.6"
version: "1.3.0"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0-nullsafety.3"
version: "1.8.0"
path_drawing:
dependency: transitive
description:
Expand All @@ -108,14 +108,14 @@ packages:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.0-nullsafety.1"
version: "4.0.2"
photo_view:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "1.0.0-nullsafety.0"
version: "0.11.0"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -127,63 +127,63 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0-nullsafety.4"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "1.10.0-nullsafety.6"
version: "1.10.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0-nullsafety.3"
version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-nullsafety.3"
version: "1.1.0"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0-nullsafety.3"
version: "1.2.0"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19-nullsafety.6"
version: "0.2.19"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0-nullsafety.5"
version: "1.3.0"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0-nullsafety.5"
version: "2.1.0"
xml:
dependency: transitive
description:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "5.0.0-nullsafety.1"
version: "5.0.2"
sdks:
dart: ">=2.12.0-0.0 <3.0.0"
dart: ">=2.12.0 <3.0.0"
flutter: ">=1.24.0-7.0"
8 changes: 3 additions & 5 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: photo_view_example
description: Example of how to use Photo View

publish_to: "none"

version: 1.0.1+1
version: 1.0.1

environment:
sdk: ">=2.12.0-0 <3.0.0"
sdk: ">=2.12.0"

dependencies:
flutter_svg: ^0.20.0-nullsafety.3
flutter_svg: ^0.21.0-nullsafety.0
photo_view:
path: ../
flutter:
Expand Down
Loading

0 comments on commit d984512

Please sign in to comment.