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