1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

fix(mobile): fix endless rendering of asset grid when scrolling (#3010)

This commit is contained in:
Fynn Petersen-Frey 2023-06-29 04:13:18 +02:00 committed by GitHub
parent 86562f256f
commit 1ab05e8de0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -272,11 +272,7 @@ class ImmichAssetGridViewState extends State<ImmichAssetGridView> {
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<ImmichAssetGridView> {
child: listWidget,
)
: listWidget;
return widget.onRefresh == null
? child
: RefreshIndicator(onRefresh: widget.onRefresh!, child: child);