mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
Remove useless type
This commit is contained in:
parent
9275e4c854
commit
f8a3db5a68
3 changed files with 2 additions and 7 deletions
|
@ -137,11 +137,6 @@ class _ItemTransformerResult {
|
||||||
final Set<Date> dates;
|
final Set<Date> dates;
|
||||||
}
|
}
|
||||||
|
|
||||||
class _MemoryCollectionItem {
|
|
||||||
static const width = 96.0;
|
|
||||||
static const height = width * 1.15;
|
|
||||||
}
|
|
||||||
|
|
||||||
@toString
|
@toString
|
||||||
class _VisibleDate implements Comparable<_VisibleDate> {
|
class _VisibleDate implements Comparable<_VisibleDate> {
|
||||||
const _VisibleDate(this.id, this.date);
|
const _VisibleDate(this.id, this.date);
|
||||||
|
|
|
@ -180,7 +180,7 @@ class _MemoryCollectionList extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return SliverToBoxAdapter(
|
return SliverToBoxAdapter(
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: _MemoryCollectionItem.height,
|
height: _MemoryCollectionItemView.height,
|
||||||
child: _BlocSelector<List<Collection>>(
|
child: _BlocSelector<List<Collection>>(
|
||||||
selector: (state) => state.memoryCollections,
|
selector: (state) => state.memoryCollections,
|
||||||
builder: (context, memoryCollections) => ListView.separated(
|
builder: (context, memoryCollections) => ListView.separated(
|
||||||
|
|
|
@ -479,7 +479,7 @@ class _BodyState extends State<_Body> {
|
||||||
AppDimension.of(context).homeBottomAppBarHeight;
|
AppDimension.of(context).homeBottomAppBarHeight;
|
||||||
// final metadataTaskHeaderExtent = _web?.getHeaderHeight() ?? 0;
|
// final metadataTaskHeaderExtent = _web?.getHeaderHeight() ?? 0;
|
||||||
final smartAlbumListHeight =
|
final smartAlbumListHeight =
|
||||||
hasMemoryCollection ? _MemoryCollectionItem.height : 0;
|
hasMemoryCollection ? _MemoryCollectionItemView.height : 0;
|
||||||
// scroll extent = list height - widget viewport height
|
// scroll extent = list height - widget viewport height
|
||||||
// + sliver app bar height + bottom app bar height
|
// + sliver app bar height + bottom app bar height
|
||||||
// + metadata task header height + smart album list height
|
// + metadata task header height + smart album list height
|
||||||
|
|
Loading…
Reference in a new issue