Skip to content

armgit / ente

Public Imported from GitHub
0

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

Refactor: rename NewProgressIndicator to MemoryProgressIndicator

AmanRajSinghMourya3facf47540aa
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<FullScreenMemory> {
? ValueListenableBuilder<Duration>(
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<NewProgressIndicator> createState() => _NewProgressIndicatorState();
+ State<MemoryProgressIndicator> createState() => _MemoryProgressIndicatorState();
}
-class _NewProgressIndicatorState extends State<NewProgressIndicator>
+class _MemoryProgressIndicatorState extends State<MemoryProgressIndicator>
with SingleTickerProviderStateMixin {
late AnimationController _animationController;
late Animation<double> _animation;