Refactor: rename NewProgressIndicator to MemoryProgressIndicator

This commit is contained in:
AmanRajSinghMourya
2025-06-05 15:42:08 +05:30
parent 629d902745
commit 3facf47540
3 changed files with 7 additions and 5 deletions

View File

@@ -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",

View File

@@ -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,

View File

@@ -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;