Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Remove unnecessary ShapeDecoration and width constrain

ashilkne875eb138993
diff --git a/mobile/lib/ui/viewer/file_details/face_widget.dart b/mobile/lib/ui/viewer/file_details/face_widget.dart
index f828db43a4..3f09ffd986 100644
--- a/mobile/lib/ui/viewer/file_details/face_widget.dart
+++ b/mobile/lib/ui/viewer/file_details/face_widget.dart
@@ -55,6 +55,7 @@ class _FaceWidgetState extends State<FaceWidget> {
builder: (context, snapshot) {
if (snapshot.hasData) {
final ImageProvider imageProvider = MemoryImage(snapshot.data!);
+
return GestureDetector(
onTap: () async {
if (widget.editMode) return;
@@ -263,21 +264,8 @@ class _FaceWidgetState extends State<FaceWidget> {
},
child: Column(
children: [
- Container(
+ SizedBox(
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: 2.0,
- )
- : BorderSide.none,
- ),
- ),
child: CroppedFaceImageView(
enteFile: widget.file,
face: widget.face,