From 3facf47540aa601fa1a94dedd21bf1ee9e2723a4 Mon Sep 17 00:00:00 2001 From: AmanRajSinghMourya Date: Thu, 5 Jun 2025 15:42:08 +0530 Subject: [PATCH] Refactor: rename NewProgressIndicator to MemoryProgressIndicator --- mobile/ios/Runner.xcodeproj/project.pbxproj | 2 ++ mobile/lib/ui/home/memories/full_screen_memory.dart | 2 +- .../lib/ui/home/memories/memory_progress_indicator.dart | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/mobile/ios/Runner.xcodeproj/project.pbxproj b/mobile/ios/Runner.xcodeproj/project.pbxproj index 678d1e3446..d2a68628c0 100644 --- a/mobile/ios/Runner.xcodeproj/project.pbxproj +++ b/mobile/ios/Runner.xcodeproj/project.pbxproj @@ -389,6 +389,7 @@ "${BUILT_PRODUCTS_DIR}/flutter_native_splash/flutter_native_splash.framework", "${BUILT_PRODUCTS_DIR}/flutter_secure_storage/flutter_secure_storage.framework", "${BUILT_PRODUCTS_DIR}/flutter_sodium/flutter_sodium.framework", + "${BUILT_PRODUCTS_DIR}/flutter_timezone/flutter_timezone.framework", "${BUILT_PRODUCTS_DIR}/fluttertoast/fluttertoast.framework", "${BUILT_PRODUCTS_DIR}/home_widget/home_widget.framework", "${BUILT_PRODUCTS_DIR}/image_editor_common/image_editor_common.framework", @@ -483,6 +484,7 @@ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_native_splash.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_secure_storage.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_sodium.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_timezone.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/fluttertoast.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/home_widget.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/image_editor_common.framework", diff --git a/mobile/lib/ui/home/memories/full_screen_memory.dart b/mobile/lib/ui/home/memories/full_screen_memory.dart index cfdb139251..ecd34ac069 100644 --- a/mobile/lib/ui/home/memories/full_screen_memory.dart +++ b/mobile/lib/ui/home/memories/full_screen_memory.dart @@ -236,7 +236,7 @@ class _FullScreenMemoryState extends State { ? ValueListenableBuilder( valueListenable: durationNotifier, builder: (context, duration, _) { - return NewProgressIndicator( + return MemoryProgressIndicator( totalSteps: inheritedData.memories.length, currentIndex: value, selectedColor: Colors.white, diff --git a/mobile/lib/ui/home/memories/memory_progress_indicator.dart b/mobile/lib/ui/home/memories/memory_progress_indicator.dart index 733acb30c5..d14bbe2c8d 100644 --- a/mobile/lib/ui/home/memories/memory_progress_indicator.dart +++ b/mobile/lib/ui/home/memories/memory_progress_indicator.dart @@ -1,6 +1,6 @@ import "package:flutter/material.dart"; -class NewProgressIndicator extends StatefulWidget { +class MemoryProgressIndicator extends StatefulWidget { final int totalSteps; final int currentIndex; final Duration duration; @@ -11,7 +11,7 @@ class NewProgressIndicator extends StatefulWidget { final void Function(AnimationController)? animationController; final VoidCallback? onComplete; - const NewProgressIndicator({ + const MemoryProgressIndicator({ super.key, required this.totalSteps, required this.currentIndex, @@ -25,10 +25,10 @@ class NewProgressIndicator extends StatefulWidget { }); @override - State createState() => _NewProgressIndicatorState(); + State createState() => _MemoryProgressIndicatorState(); } -class _NewProgressIndicatorState extends State +class _MemoryProgressIndicatorState extends State with SingleTickerProviderStateMixin { late AnimationController _animationController; late Animation _animation;