[mob] Remove unnecessary ShapeDecoration and width constrain

This commit is contained in:
ashilkn 2024-04-23 08:27:47 +05:30
parent 3253a2bf26
commit e875eb1389

View file

@ -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,