Add cacheExtend for smoother scroll

This commit is contained in:
laurenspriem
2025-08-18 17:25:44 +05:30
parent cad8613e81
commit be1bf28cd8
2 changed files with 2 additions and 0 deletions

View File

@@ -134,6 +134,7 @@ class _DeduplicatePageState extends State<DeduplicatePage> {
children: [
Expanded(
child: ListView.builder(
cacheExtent: 400,
itemBuilder: (context, index) {
if (index == 0) {
return const SizedBox.shrink();

View File

@@ -254,6 +254,7 @@ class _SimilarImagesPageState extends State<SimilarImagesPage> {
children: [
Expanded(
child: ListView.builder(
cacheExtent: 400,
itemCount: _similarFilesList.length + 1, // +1 for header
itemBuilder: (context, index) {
if (index == 0) {