Remove uneccessary global keys and widgets

This commit is contained in:
ashilkn
2025-07-22 11:04:20 +05:30
parent caa092f6c5
commit 5fd861b60a

View File

@@ -130,8 +130,6 @@ class GalleryState extends State<Gallery> {
bool _sortOrderAsc = false;
List<EnteFile> _allGalleryFiles = [];
final _scrollController = ScrollController();
final _sectionedListSliverKey = GlobalKey();
final _stackKey = GlobalKey();
final _headerKey = GlobalKey();
final _headerHeightNotifier = ValueNotifier<double?>(null);
final miscUtil = MiscUtil();
@@ -584,7 +582,6 @@ class GalleryState extends State<Gallery> {
return true;
},
child: Stack(
key: _stackKey,
clipBehavior: Clip.none,
children: [
CustomScrollView(
@@ -601,11 +598,6 @@ class GalleryState extends State<Gallery> {
),
),
),
SliverToBoxAdapter(
child: SizedBox.shrink(
key: _sectionedListSliverKey,
),
),
SectionedListSliver(
sectionLayouts: galleryGroups.groupLayouts,
),