From 5fd861b60ae1fb9c6faaa6c209fcf22c68cbe59d Mon Sep 17 00:00:00 2001 From: ashilkn Date: Tue, 22 Jul 2025 11:04:20 +0530 Subject: [PATCH] Remove uneccessary global keys and widgets --- mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart index 0f46df7e3d..cfad48c8b1 100644 --- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart +++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart @@ -130,8 +130,6 @@ class GalleryState extends State { bool _sortOrderAsc = false; List _allGalleryFiles = []; final _scrollController = ScrollController(); - final _sectionedListSliverKey = GlobalKey(); - final _stackKey = GlobalKey(); final _headerKey = GlobalKey(); final _headerHeightNotifier = ValueNotifier(null); final miscUtil = MiscUtil(); @@ -584,7 +582,6 @@ class GalleryState extends State { return true; }, child: Stack( - key: _stackKey, clipBehavior: Clip.none, children: [ CustomScrollView( @@ -601,11 +598,6 @@ class GalleryState extends State { ), ), ), - SliverToBoxAdapter( - child: SizedBox.shrink( - key: _sectionedListSliverKey, - ), - ), SectionedListSliver( sectionLayouts: galleryGroups.groupLayouts, ),