From 1ab05e8de02af6e6ccbb6e9d14ea041cc29a1dcb Mon Sep 17 00:00:00 2001 From: Fynn Petersen-Frey <10599762+fyfrey@users.noreply.github.com> Date: Thu, 29 Jun 2023 04:13:18 +0200 Subject: [PATCH] fix(mobile): fix endless rendering of asset grid when scrolling (#3010) --- .../modules/home/ui/asset_grid/immich_asset_grid_view.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mobile/lib/modules/home/ui/asset_grid/immich_asset_grid_view.dart b/mobile/lib/modules/home/ui/asset_grid/immich_asset_grid_view.dart index 691a5b27f4..2686afeac2 100644 --- a/mobile/lib/modules/home/ui/asset_grid/immich_asset_grid_view.dart +++ b/mobile/lib/modules/home/ui/asset_grid/immich_asset_grid_view.dart @@ -272,11 +272,7 @@ class ImmichAssetGridViewState extends State { Widget _buildAssetGrid() { final useDragScrolling = widget.renderList.totalAssets >= 20; - void dragScrolling(bool active) { - setState(() { - _scrolling = active; - }); - } + void dragScrolling(bool active) => _scrolling = active; final listWidget = ScrollablePositionedList.builder( padding: const EdgeInsets.only( @@ -302,7 +298,6 @@ class ImmichAssetGridViewState extends State { child: listWidget, ) : listWidget; - return widget.onRefresh == null ? child : RefreshIndicator(onRefresh: widget.onRefresh!, child: child);