mirror of
https://github.com/Myzel394/quid_faciam_hodie.git
synced 2025-06-18 23:35:25 +02:00
improvements & bugfixes
This commit is contained in:
parent
2b5832cf1a
commit
b0878ca740
@ -43,13 +43,15 @@ class _AnnotationDialogState extends State<AnnotationDialog> {
|
||||
style: getBodyTextTextStyle(context),
|
||||
),
|
||||
const SizedBox(height: MEDIUM_SPACE),
|
||||
TextField(
|
||||
PlatformTextField(
|
||||
controller: controller,
|
||||
autofocus: true,
|
||||
material: (_, __) => MaterialTextFieldData(
|
||||
decoration: InputDecoration(
|
||||
labelText: localizations
|
||||
.mainScreenAnnotationDialogAnnotationFieldLabel,
|
||||
),
|
||||
),
|
||||
onSubmitted: (value) {
|
||||
Navigator.of(context).pop(value);
|
||||
},
|
||||
|
@ -43,10 +43,18 @@ class _MemoryMapScreenState extends State<MemoryMapScreen> with Loadable {
|
||||
longitude: widget.location.longitude,
|
||||
);
|
||||
|
||||
if (!mounted) {
|
||||
return;
|
||||
}
|
||||
|
||||
setState(() {
|
||||
address = foundAddress;
|
||||
});
|
||||
} catch (error) {
|
||||
if (!mounted) {
|
||||
return;
|
||||
}
|
||||
|
||||
setState(() {
|
||||
address = null;
|
||||
});
|
||||
|
@ -27,6 +27,7 @@ class _HelpSheetFormState extends State<HelpSheetForm> {
|
||||
final localizations = AppLocalizations.of(context)!;
|
||||
|
||||
return ModalSheet(
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
Text(
|
||||
@ -67,6 +68,7 @@ class _HelpSheetFormState extends State<HelpSheetForm> {
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,9 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
import 'package:flutter_osm_plugin/flutter_osm_plugin.dart';
|
||||
import 'package:quid_faciam_hodie/constants/spacing.dart';
|
||||
import 'package:quid_faciam_hodie/foreign_types/memory_location.dart';
|
||||
import 'package:quid_faciam_hodie/utils/theme.dart';
|
||||
|
||||
class MemoryMaterialMaps extends StatefulWidget {
|
||||
final MemoryLocation location;
|
||||
@ -70,8 +73,31 @@ class _MemoryMaterialMapsState extends State<MemoryMaterialMaps> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final localizations = AppLocalizations.of(context)!;
|
||||
|
||||
return OSMFlutter(
|
||||
controller: controller,
|
||||
mapIsLoading: Container(
|
||||
color: getSheetColor(context),
|
||||
child: Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
const SizedBox(
|
||||
width: LARGE_SPACE,
|
||||
height: LARGE_SPACE,
|
||||
child: CircularProgressIndicator(),
|
||||
),
|
||||
const SizedBox(height: MEDIUM_SPACE),
|
||||
Text(
|
||||
localizations.generalLoadingLabel,
|
||||
style: getBodyTextTextStyle(context),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
initZoom: widget.initialZoom,
|
||||
maxZoomLevel: widget.lockZoom ? widget.initialZoom : 19,
|
||||
minZoomLevel: widget.lockZoom ? widget.initialZoom : 2,
|
||||
|
Loading…
x
Reference in New Issue
Block a user