diff --git a/app/lib/widget/home_photos/type.dart b/app/lib/widget/home_photos/type.dart index 6f829aec..93d0b104 100644 --- a/app/lib/widget/home_photos/type.dart +++ b/app/lib/widget/home_photos/type.dart @@ -137,11 +137,6 @@ class _ItemTransformerResult { final Set dates; } -class _MemoryCollectionItem { - static const width = 96.0; - static const height = width * 1.15; -} - @toString class _VisibleDate implements Comparable<_VisibleDate> { const _VisibleDate(this.id, this.date); diff --git a/app/lib/widget/home_photos/view.dart b/app/lib/widget/home_photos/view.dart index 5aa74473..ff8ad4b2 100644 --- a/app/lib/widget/home_photos/view.dart +++ b/app/lib/widget/home_photos/view.dart @@ -180,7 +180,7 @@ class _MemoryCollectionList extends StatelessWidget { Widget build(BuildContext context) { return SliverToBoxAdapter( child: SizedBox( - height: _MemoryCollectionItem.height, + height: _MemoryCollectionItemView.height, child: _BlocSelector>( selector: (state) => state.memoryCollections, builder: (context, memoryCollections) => ListView.separated( diff --git a/app/lib/widget/home_photos2.dart b/app/lib/widget/home_photos2.dart index 930ad148..e4000de8 100644 --- a/app/lib/widget/home_photos2.dart +++ b/app/lib/widget/home_photos2.dart @@ -479,7 +479,7 @@ class _BodyState extends State<_Body> { AppDimension.of(context).homeBottomAppBarHeight; // final metadataTaskHeaderExtent = _web?.getHeaderHeight() ?? 0; final smartAlbumListHeight = - hasMemoryCollection ? _MemoryCollectionItem.height : 0; + hasMemoryCollection ? _MemoryCollectionItemView.height : 0; // scroll extent = list height - widget viewport height // + sliver app bar height + bottom app bar height // + metadata task header height + smart album list height