From 45f2e8d6688e553396fa179906e419863b3d9db7 Mon Sep 17 00:00:00 2001 From: Tee Yu June <56582497+yujune@users.noreply.github.com> Date: Wed, 16 Oct 2024 16:20:34 +0800 Subject: [PATCH] Update example/lib/customs/pickers/directory_file_asset_picker.dart Co-authored-by: Alex Li --- example/lib/customs/pickers/directory_file_asset_picker.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/example/lib/customs/pickers/directory_file_asset_picker.dart b/example/lib/customs/pickers/directory_file_asset_picker.dart index a59a77a2..9312c333 100644 --- a/example/lib/customs/pickers/directory_file_asset_picker.dart +++ b/example/lib/customs/pickers/directory_file_asset_picker.dart @@ -701,10 +701,7 @@ class FileAssetPickerBuilder int index, List currentAssets, ) { - int currentIndex = index; - - currentIndex = index - prependSpecialItems.length; - + final currentIndex = index - prependSpecialItems.length; final File asset = currentAssets.elementAt(currentIndex); final Widget builder = imageAndVideoItemBuilder( context,