about: added missing license
This commit is contained in:
parent
61f4b621eb
commit
5fe985537f
3 changed files with 12 additions and 4 deletions
|
@ -73,10 +73,12 @@ class CollectionSource {
|
||||||
await entry.catalog();
|
await entry.catalog();
|
||||||
if (entry.isCatalogued) {
|
if (entry.isCatalogued) {
|
||||||
newMetadata.add(entry.catalogMetadata);
|
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));
|
await metadataDb.saveMetadata(List.unmodifiable(newMetadata));
|
||||||
onCatalogMetadataChanged();
|
onCatalogMetadataChanged();
|
||||||
debugPrint('$runtimeType catalogEntries complete in ${stopwatch.elapsed.inSeconds}s with ${newMetadata.length} new entries');
|
debugPrint('$runtimeType catalogEntries complete in ${stopwatch.elapsed.inSeconds}s with ${newMetadata.length} new entries');
|
||||||
|
|
|
@ -72,7 +72,7 @@ class ImageFileService {
|
||||||
return Future.sync(() => Uint8List(0));
|
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(
|
return servicePolicy.call(
|
||||||
() async {
|
() async {
|
||||||
try {
|
try {
|
||||||
|
@ -89,7 +89,7 @@ class ImageFileService {
|
||||||
return Uint8List(0);
|
return Uint8List(0);
|
||||||
},
|
},
|
||||||
// debugLabel: 'getThumbnail width=$width, height=$height entry=${entry.filenameWithoutExtension}',
|
// 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,
|
key: taskKey,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,6 +113,12 @@ class Constants {
|
||||||
licenseUrl: 'https://github.com/pinkfish/flutter_native_timezone/blob/master/LICENSE',
|
licenseUrl: 'https://github.com/pinkfish/flutter_native_timezone/blob/master/LICENSE',
|
||||||
sourceUrl: 'https://github.com/pinkfish/flutter_native_timezone',
|
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(
|
Dependency(
|
||||||
name: 'Flutter SVG',
|
name: 'Flutter SVG',
|
||||||
license: 'MIT',
|
license: 'MIT',
|
||||||
|
|
Loading…
Reference in a new issue