Browse Source

changed EnteLoadingWidget

ashilkn 2 years ago
parent
commit
eccdf2d4dd
2 changed files with 14 additions and 5 deletions
  1. 13 4
      lib/ui/common/loading_widget.dart
  2. 1 1
      lib/ui/settings/details_section_widget.dart

+ 13 - 4
lib/ui/common/loading_widget.dart

@@ -1,14 +1,23 @@
 import 'package:flutter/cupertino.dart';
+import 'package:flutter/material.dart';
+import 'package:photos/theme/ente_theme.dart';
 
 class EnteLoadingWidget extends StatelessWidget {
-  const EnteLoadingWidget({Key? key}) : super(key: key);
+  final Color? color;
+  const EnteLoadingWidget({this.color, Key? key}) : super(key: key);
 
   @override
   Widget build(BuildContext context) {
     return Center(
-      child: SizedBox.fromSize(
-        size: const Size.square(30),
-        child: const CupertinoActivityIndicator(),
+      child: Padding(
+        padding: const EdgeInsets.all(8.0),
+        child: SizedBox.fromSize(
+          size: const Size.square(16),
+          child: CircularProgressIndicator(
+            strokeWidth: 2,
+            color: color ?? getEnteColorScheme(context).strokeBase,
+          ),
+        ),
       ),
     );
   }

+ 1 - 1
lib/ui/settings/details_section_widget.dart

@@ -100,7 +100,7 @@ class _DetailsSectionWidgetState extends State<DetailsSectionWidget> {
                   );
                   return const StorageErrorWidget();
                 }
-                return const EnteLoadingWidget();
+                return const EnteLoadingWidget(color: strokeBaseDark);
               },
             ),
             Align(