From fb2c17c510fbf0ed8f4799c52e09a87caa3ae8c2 Mon Sep 17 00:00:00 2001 From: Prateek Sunal Date: Fri, 9 Aug 2024 02:32:14 +0530 Subject: [PATCH] fix: update panorama package to support sensor tweaks --- .../viewer/file/panorama_viewer_screen.dart | 4 +-- mobile/pubspec.lock | 27 ++++++++++--------- mobile/pubspec.yaml | 5 ++-- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/mobile/lib/ui/viewer/file/panorama_viewer_screen.dart b/mobile/lib/ui/viewer/file/panorama_viewer_screen.dart index b54b63879c..c9437b5ab6 100644 --- a/mobile/lib/ui/viewer/file/panorama_viewer_screen.dart +++ b/mobile/lib/ui/viewer/file/panorama_viewer_screen.dart @@ -4,7 +4,7 @@ import "dart:io"; import "package:flutter/material.dart"; import "package:flutter/services.dart"; import "package:motion_photos/src/xmp_extractor.dart"; -import "package:panorama_viewer/panorama_viewer.dart"; +import "package:panorama/panorama.dart"; import "package:photos/generated/l10n.dart"; class PanoramaViewerScreen extends StatefulWidget { @@ -123,7 +123,7 @@ class _PanoramaViewerScreenState extends State { return Scaffold( body: Stack( children: [ - PanoramaViewer( + Panorama( onTap: (_, __, ___) { setState(() { if (isVisible) { diff --git a/mobile/pubspec.lock b/mobile/pubspec.lock index e9cec130c2..5adbd5c31c 100644 --- a/mobile/pubspec.lock +++ b/mobile/pubspec.lock @@ -387,14 +387,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.7.10" - dchs_motion_sensors: - dependency: transitive - description: - name: dchs_motion_sensors - sha256: "0f1cac6cd876fad2afff47405a963913f39a67221cbfc4f00aa04da2845bab0a" - url: "https://pub.dev" - source: hosted - version: "1.1.0" defer_pointer: dependency: "direct main" description: @@ -1581,6 +1573,15 @@ packages: url: "https://github.com/ente-io/motion_photo.git" source: git version: "0.0.6" + motion_sensors: + dependency: transitive + description: + path: "." + ref: aves + resolved-ref: "4b11d59f4bda152627f701070272f657f8358e67" + url: "https://github.com/deckerst/aves_panorama_motion_sensors.git" + source: git + version: "0.1.0" motionphoto: dependency: "direct main" description: @@ -1687,15 +1688,15 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.0" - panorama_viewer: + panorama: dependency: "direct main" description: path: "." - ref: HEAD - resolved-ref: "26ad55b2aa29dde14d640d6f1e17ce132a87910a" - url: "https://github.com/prateekmedia/panorama_viewer.git" + ref: blur + resolved-ref: "362f0295ba4ed42486577c9f9724c462107080f8" + url: "https://github.com/ente-io/panorama_blur.git" source: git - version: "1.0.5" + version: "0.4.1" password_strength: dependency: "direct main" description: diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yaml index e090092713..d3a122d259 100644 --- a/mobile/pubspec.yaml +++ b/mobile/pubspec.yaml @@ -131,9 +131,10 @@ dependencies: open_mail_app: ^0.4.5 package_info_plus: ^4.1.0 page_transition: ^2.0.2 - panorama_viewer: + panorama: git: - url: https://github.com/ente-io/panorama_viewer.git + url: https://github.com/ente-io/panorama_blur.git + ref: blur password_strength: ^0.2.0 path: #dart path_provider: ^2.1.1