Add cacheExtend for smoother scroll
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user