diff --git a/CHANGELOG.md b/CHANGELOG.md index 74de0fb5..c0fded71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ + +# [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] + + # [0.10.3](https://github.com/renancaraujo/photo_view/releases/tag/0.10.3) - 15 Nov 2020 @@ -363,37 +377,7 @@ Minor bug fix [Changes][0.1.1] - -# [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 @@ -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 diff --git a/example/lib/screens/examples/controller_example.dart b/example/lib/screens/examples/controller_example.dart index 7f6b0bf1..d803ec08 100644 --- a/example/lib/screens/examples/controller_example.dart +++ b/example/lib/screens/examples/controller_example.dart @@ -24,8 +24,7 @@ class _ControllerExampleState extends State { @override void initState() { - controller = PhotoViewController() - ..scale = defScale + controller = PhotoViewController(initialScale: defScale) ..outputStateStream.listen(onController); scaleStateController = PhotoViewScaleStateController() diff --git a/example/pubspec.lock b/example/pubspec.lock index e44c7983..786329ea 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -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 @@ -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 @@ -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: @@ -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 @@ -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" diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 00f4a215..94eb8b1c 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -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: diff --git a/pubspec.lock b/pubspec.lock index 4196310b..ada7af51 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -28,28 +28,28 @@ 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" cli_util: dependency: transitive description: @@ -63,14 +63,14 @@ packages: 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" convert: dependency: transitive description: @@ -105,7 +105,7 @@ packages: 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 @@ -164,7 +164,7 @@ packages: name: js url: "https://pub.dartlang.org" source: hosted - version: "0.6.3-nullsafety.2" + version: "0.6.3" logging: dependency: transitive description: @@ -178,14 +178,14 @@ 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" mime: dependency: transitive description: @@ -220,21 +220,21 @@ packages: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.8.0-nullsafety.3" + version: "1.8.0" pedantic: dependency: transitive description: name: pedantic url: "https://pub.dartlang.org" source: hosted - version: "1.10.0-nullsafety.2" + version: "1.11.0" pool: dependency: transitive description: name: pool url: "https://pub.dartlang.org" source: hosted - version: "1.5.0-nullsafety.2" + version: "1.5.0" pub_semver: dependency: transitive description: @@ -281,84 +281,84 @@ packages: name: source_map_stack_trace url: "https://pub.dartlang.org" source: hosted - version: "2.1.0-nullsafety.3" + version: "2.1.0" source_maps: dependency: transitive description: name: source_maps url: "https://pub.dartlang.org" source: hosted - version: "0.10.10-nullsafety.2" + version: "0.10.10" source_span: dependency: transitive description: 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: dependency: "direct dev" description: name: test url: "https://pub.dartlang.org" source: hosted - version: "1.16.0-nullsafety.17" + version: "1.16.5" 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" test_core: dependency: transitive description: name: test_core url: "https://pub.dartlang.org" source: hosted - version: "0.3.12-nullsafety.15" + version: "0.3.15" 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" vm_service: dependency: transitive description: @@ -395,5 +395,5 @@ packages: source: hosted version: "2.1.16" sdks: - dart: ">=2.12.0-0.0 <=2.12.0-253.0.dev" + dart: ">=2.12.0 <3.0.0" flutter: ">=1.6.0" diff --git a/pubspec.yaml b/pubspec.yaml index 8f9ca067..fc0d835f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,11 +1,11 @@ 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: 1.0.0-nullsafety.0 +version: 0.11.0 homepage: https://github.com/renancaraujo/photo_view environment: - sdk: ">=2.12.0-0 <3.0.0" - flutter: ">=1.6.0 <2.0.0" + sdk: ">=2.12.0 <3.0.0" + flutter: ">=1.6.0" dependencies: flutter: