minor changes
This commit is contained in:
parent
2ca67f403d
commit
867447832a
3 changed files with 4 additions and 6 deletions
|
@ -43,15 +43,13 @@ abstract class CollectionSource with SourceBase, AlbumMixin, LocationMixin, TagM
|
||||||
|
|
||||||
final Set<AvesEntry> _rawEntries = {};
|
final Set<AvesEntry> _rawEntries = {};
|
||||||
|
|
||||||
// TODO TLAD use `Set.unmodifiable()` when possible
|
Set<AvesEntry> get allEntries => Set.unmodifiable(_rawEntries);
|
||||||
Set<AvesEntry> get allEntries => Set.of(_rawEntries);
|
|
||||||
|
|
||||||
Set<AvesEntry>? _visibleEntries;
|
Set<AvesEntry>? _visibleEntries;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Set<AvesEntry> get visibleEntries {
|
Set<AvesEntry> get visibleEntries {
|
||||||
// TODO TLAD use `Set.unmodifiable()` when possible
|
_visibleEntries ??= Set.unmodifiable(_applyHiddenFilters(_rawEntries));
|
||||||
_visibleEntries ??= Set.of(_applyHiddenFilters(_rawEntries));
|
|
||||||
return _visibleEntries!;
|
return _visibleEntries!;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@ class SectionHeader extends StatelessWidget {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO TLAD cache header extent computation?
|
// TODO TLAD [perf] cache header extent computation?
|
||||||
static double getPreferredHeight({
|
static double getPreferredHeight({
|
||||||
required BuildContext context,
|
required BuildContext context,
|
||||||
required double maxWidth,
|
required double maxWidth,
|
||||||
|
|
|
@ -2,7 +2,7 @@ import 'package:aves/widgets/aves_app.dart';
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
testWidgets('TODO TLAD', (tester) async {
|
testWidgets('widget test', (tester) async {
|
||||||
await tester.pumpWidget(AvesApp());
|
await tester.pumpWidget(AvesApp());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue