Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mobile][photos] Match memory lane mute button position

aspizu84403740ef73
diff --git a/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart b/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart
index 5b5ca90e02..a5d3f6f928 100644
--- a/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart
+++ b/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart
@@ -44,8 +44,6 @@ import "package:photos/ui/viewer/gallery/jump_to_date_gallery.dart";
import "package:photos/utils/dialog_util.dart";
import "package:photos/utils/share_util.dart";
-const _memoryOverlayHorizontalInset = 24.0;
-const _socialToActionBarGap = 38.0;
const _memoryCaptionHorizontalInset = 16.0;
const _memoryCaptionActionBarGap = 4.0;
const _memoryCaptionLineHeight = 16.0;
@@ -838,11 +836,10 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {
Positioned(
left:
MediaQuery.paddingOf(context).left +
- _memoryOverlayHorizontalInset,
+ kMemoryOverlayHorizontalInset,
bottom:
MediaQuery.paddingOf(context).bottom +
- kMemoryBottomActionBarHeight +
- _socialToActionBarGap,
+ kMemoryOverlayBottomInset,
child: ValueListenableBuilder<int>(
valueListenable: inheritedData.indexNotifier,
builder: (context, index, _) {
@@ -870,11 +867,8 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {
if (safeIndex == null) return const SizedBox.shrink();
final padding = MediaQuery.paddingOf(context);
return Positioned(
- right: padding.right + _memoryOverlayHorizontalInset,
- bottom:
- padding.bottom +
- kMemoryBottomActionBarHeight +
- _socialToActionBarGap,
+ right: padding.right + kMemoryOverlayHorizontalInset,
+ bottom: padding.bottom + kMemoryOverlayBottomInset,
child: FileSocialOverlay(
file: inheritedData.memories[safeIndex].file,
currentUserID: Configuration.instance.getUserID(),
diff --git a/mobile/apps/photos/lib/ui/home/memories/memory_viewer_constants.dart b/mobile/apps/photos/lib/ui/home/memories/memory_viewer_constants.dart
index fb6be8ff01..3d4140c49e 100644
--- a/mobile/apps/photos/lib/ui/home/memories/memory_viewer_constants.dart
+++ b/mobile/apps/photos/lib/ui/home/memories/memory_viewer_constants.dart
@@ -1,2 +1,4 @@
const kMemoryBottomActionBarHeight = 80.0;
+const kMemoryOverlayHorizontalInset = 24.0;
+const kMemoryOverlayBottomInset = kMemoryBottomActionBarHeight + 38.0;
const kMemorySocialScrimHeight = 296.0;
diff --git a/mobile/apps/photos/lib/ui/viewer/people/memory_lane_page_v2.dart b/mobile/apps/photos/lib/ui/viewer/people/memory_lane_page_v2.dart
index 7bd71a5b57..85bfc2611d 100644
--- a/mobile/apps/photos/lib/ui/viewer/people/memory_lane_page_v2.dart
+++ b/mobile/apps/photos/lib/ui/viewer/people/memory_lane_page_v2.dart
@@ -23,6 +23,7 @@ import "package:photos/services/memory_share_service.dart";
import "package:photos/theme/ente_theme.dart";
import "package:photos/ui/home/memories/memory_music_session.dart";
import "package:photos/ui/home/memories/memory_progress_indicator.dart";
+import "package:photos/ui/home/memories/memory_viewer_constants.dart";
import "package:photos/ui/viewer/gallery/jump_to_date_gallery.dart";
import "package:photos/ui/viewer/people/memory_lane_page.dart";
import "package:photos/utils/dialog_util.dart";
@@ -950,8 +951,8 @@ class _MemoryLanePageV2State extends State<MemoryLanePageV2> {
),
if (memoryAudio != null && _entries.isNotEmpty)
Positioned(
- left: safePadding.left + 16,
- bottom: safePadding.bottom + screenSize.height * 0.055 - 8,
+ left: safePadding.left + kMemoryOverlayHorizontalInset,
+ bottom: safePadding.bottom + kMemoryOverlayBottomInset,
child: MemoryAudioMuteButton(memoryAudio),
),
],