various fixes
This commit is contained in:
parent
473db9174d
commit
a85612269a
4 changed files with 4 additions and 5 deletions
|
@ -106,8 +106,7 @@ class MediaStoreSource extends CollectionSource {
|
|||
}
|
||||
|
||||
Future<void> refreshUris(List<String> changedUris) async {
|
||||
assert(_initialized);
|
||||
debugPrint('$runtimeType refreshUris uris=$changedUris');
|
||||
if (!_initialized) return;
|
||||
|
||||
final uriByContentId = Map.fromEntries(changedUris.map((uri) {
|
||||
if (uri == null) return null;
|
||||
|
|
|
@ -57,7 +57,6 @@ class ImageFileService {
|
|||
}
|
||||
|
||||
static Future<AvesEntry> getEntry(String uri, String mimeType) async {
|
||||
debugPrint('getEntry for uri=$uri, mimeType=$mimeType');
|
||||
try {
|
||||
final result = await platform.invokeMethod('getEntry', <String, dynamic>{
|
||||
'uri': uri,
|
||||
|
|
|
@ -264,7 +264,7 @@ class _RenderSliverKnownExtentBoxAdaptor extends RenderSliverMultiBoxAdaptor {
|
|||
final targetLastIndexForPaint = targetEndScrollOffsetForPaint.isFinite ? getMaxChildIndexForScrollOffset(targetEndScrollOffsetForPaint) : null;
|
||||
geometry = SliverGeometry(
|
||||
scrollExtent: estimatedMaxScrollOffset,
|
||||
paintExtent: paintExtent,
|
||||
paintExtent: math.min(paintExtent, estimatedMaxScrollOffset),
|
||||
cacheExtent: cacheExtent,
|
||||
maxPaintExtent: estimatedMaxScrollOffset,
|
||||
// Conservative to avoid flickering away the clip during scroll.
|
||||
|
|
|
@ -105,7 +105,8 @@ class ExpandableFilterRow extends StatelessWidget {
|
|||
|
||||
Widget _buildFilterChip(CollectionFilter filter) {
|
||||
return AvesFilterChip(
|
||||
key: ValueKey(filter),
|
||||
// key `album-...` is expected by test driver
|
||||
key: Key(filter.key),
|
||||
filter: filter,
|
||||
heroType: heroTypeBuilder?.call(filter) ?? HeroType.onTap,
|
||||
onTap: onTap,
|
||||
|
|
Loading…
Reference in a new issue