diff --git a/mobile/lib/ui/viewer/gallery/gallery.dart b/mobile/lib/ui/viewer/gallery/gallery.dart index fa27556469..1cb5721d55 100644 --- a/mobile/lib/ui/viewer/gallery/gallery.dart +++ b/mobile/lib/ui/viewer/gallery/gallery.dart @@ -107,7 +107,7 @@ class Gallery extends StatefulWidget { class GalleryState extends State { static const int kInitialLoadLimit = 100; late final Debouncer _debouncer; - late Future headerExtent; + late Future groupHeaderExtent; late Logger _logger; List> currentGroupedFiles = []; @@ -205,7 +205,7 @@ class GalleryState extends State { } }); - headerExtent = getIntrinsicSizeOfWidget( + groupHeaderExtent = getIntrinsicSizeOfWidget( GroupHeaderWidget( title: "This is a temp title", gridSize: localSettings.getPhotoGridSize(), @@ -421,7 +421,7 @@ class GalleryState extends State { // physics: const BouncingScrollPhysics(), slivers: [ FutureBuilder( - future: headerExtent, + future: groupHeaderExtent, builder: (context, snapshot) { if (snapshot.hasData) { return SectionedListSliver(