π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Refine loading indicators
ashilkn73a613c3fec1
diff --git a/mobile/apps/auth/lib/ui/common/loading_widget.dart b/mobile/apps/auth/lib/ui/common/loading_widget.dartindex d375486205..e8142d9ec4 100644--- a/mobile/apps/auth/lib/ui/common/loading_widget.dart+++ b/mobile/apps/auth/lib/ui/common/loading_widget.dart@@ -8,7 +8,7 @@ class EnteLoadingWidget extends StatelessWidget {final Alignment alignment;const EnteLoadingWidget({this.color,- this.size = 14,+ this.size = 16,this.padding = 5,this.alignment = Alignment.center,super.key,@@ -23,7 +23,7 @@ class EnteLoadingWidget extends StatelessWidget {child: SizedBox.fromSize(size: Size.square(size),child: CircularProgressIndicator(- strokeWidth: 2,+ strokeWidth: 1.5,color: color ?? getEnteColorScheme(context).strokeBase,),),diff --git a/mobile/apps/photos/lib/ui/common/loading_widget.dart b/mobile/apps/photos/lib/ui/common/loading_widget.dartindex fc10eeb18a..e454b03770 100644--- a/mobile/apps/photos/lib/ui/common/loading_widget.dart+++ b/mobile/apps/photos/lib/ui/common/loading_widget.dart@@ -8,7 +8,7 @@ class EnteLoadingWidget extends StatelessWidget {final Alignment alignment;const EnteLoadingWidget({this.color,- this.size = 14,+ this.size = 16,this.padding = 5,this.alignment = Alignment.center,super.key,@@ -24,7 +24,7 @@ class EnteLoadingWidget extends StatelessWidget {size: Size.square(size),child: RepaintBoundary(child: CircularProgressIndicator(- strokeWidth: 2,+ strokeWidth: 1.5,color: color ?? getEnteColorScheme(context).strokeBase,strokeCap: StrokeCap.round,),diff --git a/mobile/apps/photos/lib/ui/viewer/file_details/upload_icon_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/upload_icon_widget.dartindex 9cb41a8a3a..256ac00e37 100644--- a/mobile/apps/photos/lib/ui/viewer/file_details/upload_icon_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/file_details/upload_icon_widget.dart@@ -73,20 +73,22 @@ class _UpdateIconWidgetState extends State<UploadIconWidget> {}if (widget.file.isUploaded || isUploadedNow) {if (isUploadedNow) {- return Padding(- padding: const EdgeInsets.all(8.0),- child:- const HugeIcon(- icon: HugeIcons.strokeRoundedCloudSavingDone01,- color: Colors.white,- )- .animate()- .fadeIn(duration: 500.ms, curve: Curves.easeInOutCubic)- .fadeOut(- delay: const Duration(seconds: 3),- duration: 500.ms,- curve: Curves.easeInOutCubic,- ),+ return SizedBox.square(+ dimension: kMinInteractiveDimension,+ child: Center(+ child:+ const HugeIcon(+ icon: HugeIcons.strokeRoundedCloudSavingDone01,+ color: Colors.white,+ )+ .animate()+ .fadeIn(duration: 500.ms, curve: Curves.easeInOutCubic)+ .fadeOut(+ delay: const Duration(seconds: 3),+ duration: 500.ms,+ curve: Curves.easeInOutCubic,+ ),+ ),);}return const SizedBox.shrink();@@ -104,7 +106,10 @@ class _UpdateIconWidgetState extends State<UploadIconWidget> {final bool isQueuedForUpload =!isIgnored && widget.file.collectionID != null;if (isQueuedForUpload && isBeingUploaded) {- return const EnteLoadingWidget();+ return const SizedBox.square(+ dimension: kMinInteractiveDimension,+ child: EnteLoadingWidget(color: Colors.white),+ );}if (isIgnored && (kDebugMode || ignoreReason != kIgnoreReasonTrash)) {showToast(diff --git a/mobile/packages/ui/lib/components/loading_widget.dart b/mobile/packages/ui/lib/components/loading_widget.dartindex 113d9e199f..fe8eed1d19 100644--- a/mobile/packages/ui/lib/components/loading_widget.dart+++ b/mobile/packages/ui/lib/components/loading_widget.dart@@ -8,7 +8,7 @@ class EnteLoadingWidget extends StatelessWidget {final Alignment alignment;const EnteLoadingWidget({this.color,- this.size = 14,+ this.size = 16,this.padding = 5,this.alignment = Alignment.center,super.key,@@ -23,7 +23,7 @@ class EnteLoadingWidget extends StatelessWidget {child: SizedBox.fromSize(size: Size.square(size),child: CircularProgressIndicator(- strokeWidth: 2,+ strokeWidth: 1.5,color: color ?? getEnteColorScheme(context).strokeBase,),),