diff --git a/lib/ui/home_widget.dart b/lib/ui/home_widget.dart index ecf627c39c5768572e57b57316be19a83d11c910..0d891cc03bd8a9c1df56f50f59c741d13f5df4d8 100644 --- a/lib/ui/home_widget.dart +++ b/lib/ui/home_widget.dart @@ -69,16 +69,7 @@ class _HomeWidgetState extends State { if (snapshot.hasData) { return IndexedStack( children: [ - Gallery( - _getFilteredPhotos(PhotoRepository.instance.photos), - _selectedPhotos, - photoSelectionChangeCallback: (Set selectedPhotos) { - setState(() { - _selectedPhotos = selectedPhotos; - }); - }, - enablePullToSync: true, - ), + _getMainGalleryWidget(), _deviceFolderGalleryWidget, _remoteFolderGalleryWidget, ], @@ -112,6 +103,19 @@ class _HomeWidgetState extends State { ); } + Gallery _getMainGalleryWidget() { + return Gallery( + _getFilteredPhotos(PhotoRepository.instance.photos), + _selectedPhotos, + photoSelectionChangeCallback: (Set selectedPhotos) { + setState(() { + _selectedPhotos = selectedPhotos; + }); + }, + enablePullToSync: true, + ); + } + BottomNavigationBar _buildBottomNavigationBar() { return BottomNavigationBar( items: const [