mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 15:30:40 +00:00
[mob][photos] Fix minor clipping issue on ContinuousRectangleBorder of faces
This commit is contained in:
parent
3ddb43b2b3
commit
e43a6bbd21
@ -214,53 +214,63 @@ class PersonSearchExample extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Stack(
|
ClipPath(
|
||||||
alignment: Alignment.center,
|
clipper: ShapeBorderClipper(
|
||||||
children: [
|
shape: ContinuousRectangleBorder(
|
||||||
ClipPath(
|
borderRadius: BorderRadius.circular(82),
|
||||||
clipper: ShapeBorderClipper(
|
),
|
||||||
shape: ContinuousRectangleBorder(
|
),
|
||||||
borderRadius: BorderRadius.circular(82),
|
child: Stack(
|
||||||
|
clipBehavior: Clip.none,
|
||||||
|
alignment: Alignment.center,
|
||||||
|
children: [
|
||||||
|
ClipPath(
|
||||||
|
clipper: ShapeBorderClipper(
|
||||||
|
shape: ContinuousRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(82),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
child: Container(
|
||||||
|
width: size,
|
||||||
|
height: size,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: getEnteColorScheme(context).strokeFaint,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Container(
|
SizedBox(
|
||||||
width: size,
|
width: size - 2,
|
||||||
height: size,
|
height: size - 2,
|
||||||
decoration: BoxDecoration(
|
child: searchResult.previewThumbnail() != null
|
||||||
color: getEnteColorScheme(context).strokeFaint,
|
? ClipPath(
|
||||||
),
|
clipper: ShapeBorderClipper(
|
||||||
|
shape: ContinuousRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(81),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
child: searchResult.type() != ResultType.faces
|
||||||
|
? ThumbnailWidget(
|
||||||
|
searchResult.previewThumbnail()!,
|
||||||
|
shouldShowSyncStatus: false,
|
||||||
|
)
|
||||||
|
: FaceSearchResult(searchResult),
|
||||||
|
)
|
||||||
|
: ClipPath(
|
||||||
|
clipper: ShapeBorderClipper(
|
||||||
|
shape: ContinuousRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(81),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
child: const NoThumbnailWidget(
|
||||||
|
addBorder: false,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
SizedBox(
|
),
|
||||||
width: size - 2,
|
|
||||||
height: size - 2,
|
|
||||||
child: searchResult.previewThumbnail() != null
|
|
||||||
? ClipPath(
|
|
||||||
clipper: ShapeBorderClipper(
|
|
||||||
shape: ContinuousRectangleBorder(
|
|
||||||
borderRadius: BorderRadius.circular(80),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
child: searchResult.type() != ResultType.faces
|
|
||||||
? ThumbnailWidget(
|
|
||||||
searchResult.previewThumbnail()!,
|
|
||||||
shouldShowSyncStatus: false,
|
|
||||||
)
|
|
||||||
: FaceSearchResult(searchResult),
|
|
||||||
)
|
|
||||||
: ClipPath(
|
|
||||||
clipper: ShapeBorderClipper(
|
|
||||||
shape: ContinuousRectangleBorder(
|
|
||||||
borderRadius: BorderRadius.circular(80),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
child: const NoThumbnailWidget(
|
|
||||||
addBorder: false,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
isCluster
|
isCluster
|
||||||
? GestureDetector(
|
? GestureDetector(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user