Remove useless type

This commit is contained in:
Ming Ming 2024-07-15 21:58:02 +08:00
parent 9275e4c854
commit f8a3db5a68
3 changed files with 2 additions and 7 deletions

View file

@ -137,11 +137,6 @@ class _ItemTransformerResult {
final Set<Date> 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);

View file

@ -180,7 +180,7 @@ class _MemoryCollectionList extends StatelessWidget {
Widget build(BuildContext context) {
return SliverToBoxAdapter(
child: SizedBox(
height: _MemoryCollectionItem.height,
height: _MemoryCollectionItemView.height,
child: _BlocSelector<List<Collection>>(
selector: (state) => state.memoryCollections,
builder: (context, memoryCollections) => ListView.separated(

View file

@ -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