about: added missing license

This commit is contained in:
Thibault Deckers 2020-06-08 13:53:34 +09:00
parent 61f4b621eb
commit 5fe985537f
3 changed files with 12 additions and 4 deletions

View file

@ -73,10 +73,12 @@ class CollectionSource {
await entry.catalog();
if (entry.isCatalogued) {
newMetadata.add(entry.catalogMetadata);
if (newMetadata.length >= 500) {
await metadataDb.saveMetadata(List.unmodifiable(newMetadata));
newMetadata.clear();
}
}
});
if (newMetadata.isEmpty) return;
await metadataDb.saveMetadata(List.unmodifiable(newMetadata));
onCatalogMetadataChanged();
debugPrint('$runtimeType catalogEntries complete in ${stopwatch.elapsed.inSeconds}s with ${newMetadata.length} new entries');

View file

@ -72,7 +72,7 @@ class ImageFileService {
return Future.sync(() => Uint8List(0));
}
static Future<Uint8List> getThumbnail(ImageEntry entry, int width, int height, {Object taskKey}) {
static Future<Uint8List> getThumbnail(ImageEntry entry, int width, int height, {Object taskKey, int priority}) {
return servicePolicy.call(
() async {
try {
@ -89,7 +89,7 @@ class ImageFileService {
return Uint8List(0);
},
// debugLabel: 'getThumbnail width=$width, height=$height entry=${entry.filenameWithoutExtension}',
priority: width == 0 || height == 0 ? ServiceCallPriority.getFastThumbnail : ServiceCallPriority.getSizedThumbnail,
priority: priority ?? (width == 0 || height == 0 ? ServiceCallPriority.getFastThumbnail : ServiceCallPriority.getSizedThumbnail),
key: taskKey,
);
}

View file

@ -113,6 +113,12 @@ class Constants {
licenseUrl: 'https://github.com/pinkfish/flutter_native_timezone/blob/master/LICENSE',
sourceUrl: 'https://github.com/pinkfish/flutter_native_timezone',
),
Dependency(
name: 'Flutter Staggered Animations',
license: 'MIT',
licenseUrl: 'https://github.com/mobiten/flutter_staggered_animations/blob/master/LICENSE',
sourceUrl: 'https://github.com/mobiten/flutter_staggered_animations',
),
Dependency(
name: 'Flutter SVG',
license: 'MIT',