[photos][mobile] Performance improvement (#1080)
## Description Stack has `clipBehaviour = Clip.hardEdge` by default. This is necessary if content inside the stack is overflowing it's boundary and it has to be clipped. Clipping is expensive so it's worth removing it when it makes sense. In this case of `GalleryFileWidget`, content doesn't overflow the Stack's boundary so the clip operation can be removed by setting `clipBehaviour = Clip.none`.
This commit is contained in:
parent
ccb6a4a283
commit
6ef1da68e0
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ class GalleryFileWidget extends StatelessWidget {
|
|||
: _onLongPressNoSelectionLimit(context, file);
|
||||
},
|
||||
child: Stack(
|
||||
clipBehavior: Clip.none,
|
||||
children: [
|
||||
ClipRRect(
|
||||
borderRadius: BorderRadius.circular(1),
|
||||
|
|
Loading…
Add table
Reference in a new issue