[mob][photos] Show loading indicator till the image of face in face filter is ready

This commit is contained in:
ashilkn
2024-10-22 12:35:58 +05:30
parent fa076305df
commit da21dcbd9e
2 changed files with 5 additions and 1 deletions

View File

@@ -102,6 +102,7 @@ class FaceFilterChip extends StatelessWidget {
faceThumbnailFile,
personId: personId,
clusterID: clusterId,
thumbnailFallback: false,
),
),
),

View File

@@ -8,6 +8,7 @@ import 'package:photos/models/file/file.dart';
import "package:photos/models/ml/face/face.dart";
import "package:photos/models/ml/face/person.dart";
import "package:photos/services/machine_learning/face_ml/person/person_service.dart";
import "package:photos/theme/ente_theme.dart";
import "package:photos/ui/common/loading_widget.dart";
import "package:photos/ui/viewer/file/thumbnail_widget.dart";
import "package:photos/utils/face/face_box_crop.dart";
@@ -70,7 +71,9 @@ class PersonFaceWidget extends StatelessWidget {
}
return thumbnailFallback
? ThumbnailWidget(file)
: const EnteLoadingWidget();
: EnteLoadingWidget(
color: getEnteColorScheme(context).fillMuted,
);
}
},
);