info: fixed layout

This commit is contained in:
Thibault Deckers 2019-08-31 22:54:52 +09:00
parent 614c2a67cc
commit 7807077e23
3 changed files with 18 additions and 19 deletions

View file

@ -93,7 +93,6 @@ class ImageCollection with ChangeNotifier {
}
loadCatalogMetadata() async {
debugPrint('$runtimeType loadCatalogMetadata start');
final start = DateTime.now();
final saved = await metadataDb.loadMetadataEntries();
_rawEntries.forEach((entry) {
@ -107,7 +106,6 @@ class ImageCollection with ChangeNotifier {
}
loadAddresses() async {
debugPrint('$runtimeType loadAddresses start');
final start = DateTime.now();
final saved = await metadataDb.loadAddresses();
_rawEntries.forEach((entry) {
@ -120,7 +118,6 @@ class ImageCollection with ChangeNotifier {
}
catalogEntries() async {
debugPrint('$runtimeType catalogEntries start');
final start = DateTime.now();
final uncataloguedEntries = _rawEntries.where((entry) => !entry.isCatalogued);
final newMetadata = List<CatalogMetadata>();
@ -134,7 +131,6 @@ class ImageCollection with ChangeNotifier {
}
locateEntries() async {
debugPrint('$runtimeType locateEntries start');
final start = DateTime.now();
final unlocatedEntries = _rawEntries.where((entry) => entry.hasGps && !entry.isLocated);
final newAddresses = List<AddressDetails>();

View file

@ -47,21 +47,23 @@ class InfoPageState extends State<InfoPage> {
),
title: Text('Info'),
),
body: NotificationListener(
onNotification: _handleTopScroll,
child: ListView(
padding: EdgeInsets.all(8.0) + EdgeInsets.only(bottom: bottomInsets),
children: [
InfoRow('Title', entry.title),
InfoRow('Date', dateText),
if (entry.isVideo) ..._buildVideoRows(),
InfoRow('Resolution', resolutionText),
InfoRow('Size', formatFilesize(entry.sizeBytes)),
InfoRow('Path', entry.path),
LocationSection(entry: entry),
XmpTagSection(collection: widget.collection, entry: entry),
MetadataSection(entry: entry),
],
body: SafeArea(
child: NotificationListener(
onNotification: _handleTopScroll,
child: ListView(
padding: EdgeInsets.all(8.0) + EdgeInsets.only(bottom: bottomInsets),
children: [
InfoRow('Title', entry.title),
InfoRow('Date', dateText),
if (entry.isVideo) ..._buildVideoRows(),
InfoRow('Resolution', resolutionText),
InfoRow('Size', formatFilesize(entry.sizeBytes)),
InfoRow('Path', entry.path),
LocationSection(entry: entry),
XmpTagSection(collection: widget.collection, entry: entry),
MetadataSection(entry: entry),
],
),
),
),
resizeToAvoidBottomInset: false,

View file

@ -18,6 +18,7 @@ class LocationSection extends AnimatedWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SectionRow('Location'),
SizedBox(height: 8),
ImageMap(
markerId: entry.path,
latLng: LatLng(