[mob] Remove unnecessary ShapeDecoration and width constrain
This commit is contained in:
parent
3253a2bf26
commit
e875eb1389
|
@ -55,6 +55,7 @@ class _FaceWidgetState extends State<FaceWidget> {
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
if (snapshot.hasData) {
|
if (snapshot.hasData) {
|
||||||
final ImageProvider imageProvider = MemoryImage(snapshot.data!);
|
final ImageProvider imageProvider = MemoryImage(snapshot.data!);
|
||||||
|
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
if (widget.editMode) return;
|
if (widget.editMode) return;
|
||||||
|
@ -263,21 +264,8 @@ class _FaceWidgetState extends State<FaceWidget> {
|
||||||
},
|
},
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
SizedBox(
|
||||||
height: 60,
|
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(
|
child: CroppedFaceImageView(
|
||||||
enteFile: widget.file,
|
enteFile: widget.file,
|
||||||
face: widget.face,
|
face: widget.face,
|
||||||
|
|
Loading…
Reference in a new issue