Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] merge mobile_face to fix_face_thumbnail

ashilkna577611e65ef
diff --cc mobile/lib/ui/viewer/file_details/face_widget.dart
index 9d1fa8dec1,4caf1305f4..fa455eba4f
--- a/mobile/lib/ui/viewer/file_details/face_widget.dart
+++ b/mobile/lib/ui/viewer/file_details/face_widget.dart
@@@ -264,13 -264,56 +264,56 @@@ class _FaceWidgetState extends State<Fa
},
child: Column(
children: [
- SizedBox(
- width: 60,
- height: 60,
- child: CroppedFaceImgImageView(
- enteFile: widget.file,
- face: widget.face,
- ),
+ Stack(
+ children: [
+ Container(
+ height: 60,
+ width: 60,
+ decoration: ShapeDecoration(
+ shape: RoundedRectangleBorder(
+ borderRadius: const BorderRadius.all(
+ Radius.elliptical(16, 12),
+ ),
+ side: widget.highlight
+ ? BorderSide(
+ color: getEnteColorScheme(context).primary700,
+ width: 1.0,
+ )
+ : BorderSide.none,
+ ),
+ ),
+ child: ClipRRect(
+ borderRadius:
+ const BorderRadius.all(Radius.elliptical(16, 12)),
+ child: SizedBox(
+ width: 60,
+ height: 60,
- child: CroppedFaceImageView(
++ child: CroppedFaceImgImageView(
+ enteFile: widget.file,
+ face: widget.face,
+ ),
+ ),
+ ),
+ ),
+ // TODO: the edges of the green line are still not properly rounded around ClipRRect
+ if (widget.editMode)
+ Positioned(
+ right: 0,
+ top: 0,
+ child: GestureDetector(
+ onTap: _cornerIconPressed,
+ child: isJustRemoved
+ ? const Icon(
+ CupertinoIcons.add_circled_solid,
+ color: Colors.green,
+ )
+ : const Icon(
+ Icons.cancel,
+ color: Colors.red,
+ ),
+ ),
+ ),
+ ],
),
const SizedBox(height: 8),
if (widget.person != null)