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,7 +47,8 @@ class InfoPageState extends State<InfoPage> {
),
title: Text('Info'),
),
body: NotificationListener(
body: SafeArea(
child: NotificationListener(
onNotification: _handleTopScroll,
child: ListView(
padding: EdgeInsets.all(8.0) + EdgeInsets.only(bottom: bottomInsets),
@ -64,6 +65,7 @@ class InfoPageState extends State<InfoPage> {
],
),
),
),
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(