mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-25 02:48:54 +01:00
Remove redundant measuring
This commit is contained in:
parent
645f30a1ff
commit
948579bcb5
1 changed files with 3 additions and 0 deletions
|
@ -77,6 +77,9 @@ class _MeasurableItemListState extends State<MeasurableItemList>
|
||||||
|
|
||||||
// need to rebuild grid after cell size changed
|
// need to rebuild grid after cell size changed
|
||||||
final cellSize = widget.maxCrossAxisExtent;
|
final cellSize = widget.maxCrossAxisExtent;
|
||||||
|
if (_prevCellSize == null) {
|
||||||
|
_prevCellSize = cellSize;
|
||||||
|
}
|
||||||
if (cellSize != _prevCellSize) {
|
if (cellSize != _prevCellSize) {
|
||||||
_log.info("[build] updateListHeight: cell size changed");
|
_log.info("[build] updateListHeight: cell size changed");
|
||||||
WidgetsBinding.instance!
|
WidgetsBinding.instance!
|
||||||
|
|
Loading…
Reference in a new issue