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
4f54e54bba
commit
b9e4d29fa1
@ -6,6 +6,7 @@
|
|||||||
"generalContinueButtonLabel": "Weiter",
|
"generalContinueButtonLabel": "Weiter",
|
||||||
"generalUnderstoodButtonLabel": "OK",
|
"generalUnderstoodButtonLabel": "OK",
|
||||||
"generalLoadingLabel": "Wird geladen...",
|
"generalLoadingLabel": "Wird geladen...",
|
||||||
|
"generalSwipeForMore": "Wische hoch für mehr",
|
||||||
|
|
||||||
"welcomeScreenDescription": "Finde heraus was du den ganzen Tag gemacht hast und erlebe Erinnerungen wieder, die du komplett vergessen hast!",
|
"welcomeScreenDescription": "Finde heraus was du den ganzen Tag gemacht hast und erlebe Erinnerungen wieder, die du komplett vergessen hast!",
|
||||||
"welcomeScreenSubtitle": "Was hab ich heute gemacht?",
|
"welcomeScreenSubtitle": "Was hab ich heute gemacht?",
|
||||||
@ -41,6 +42,9 @@
|
|||||||
"loginScreenFormPasswordLabel": "Passwort",
|
"loginScreenFormPasswordLabel": "Passwort",
|
||||||
"loginScreenFormSubmitButton": "Anmelden",
|
"loginScreenFormSubmitButton": "Anmelden",
|
||||||
"loginScreenLoginFailed": "E-Mail oder Passwort inkorrekt",
|
"loginScreenLoginFailed": "E-Mail oder Passwort inkorrekt",
|
||||||
|
"loginScreenSignUpDialogTitle": "Registrieren",
|
||||||
|
"loginScreenSignUpDialogExplanation": "Wir haben deinen Account nicht gefunden. Möchtest du dich jetzt registrieren?",
|
||||||
|
"loginScreenSignUpDialogAffirmationLabel": "Jetzt registrieren",
|
||||||
|
|
||||||
|
|
||||||
"grantPermissionScreenTitle": "Berechtigungen erteilen",
|
"grantPermissionScreenTitle": "Berechtigungen erteilen",
|
||||||
@ -71,7 +75,6 @@
|
|||||||
|
|
||||||
|
|
||||||
"memoryMapScreenTitle": "Standort",
|
"memoryMapScreenTitle": "Standort",
|
||||||
"memoryMapScreenExpandForMoreDescription": "Erweitere für mehr Details",
|
|
||||||
"memoryMapScreenOpenNavigation": "Navigation öffnen",
|
"memoryMapScreenOpenNavigation": "Navigation öffnen",
|
||||||
"memoryMapScreenValuesAddressLabel": "Geschätzte Adresse",
|
"memoryMapScreenValuesAddressLabel": "Geschätzte Adresse",
|
||||||
"memoryMapScreenValuesAddressIsUnavailable": "Address nicht verfügbar",
|
"memoryMapScreenValuesAddressIsUnavailable": "Address nicht verfügbar",
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
"generalSaveButtonLabel": "Save",
|
"generalSaveButtonLabel": "Save",
|
||||||
"generalUnderstoodButtonLabel": "OK",
|
"generalUnderstoodButtonLabel": "OK",
|
||||||
"generalLoadingLabel": "Loading...",
|
"generalLoadingLabel": "Loading...",
|
||||||
|
"generalSwipeForMore": "Swipe up for more",
|
||||||
|
|
||||||
"welcomeScreenDescription": "Find out what you did all the days and unlock moments you completely forgot!",
|
"welcomeScreenDescription": "Find out what you did all the days and unlock moments you completely forgot!",
|
||||||
"welcomeScreenSubtitle": "What did I do today?",
|
"welcomeScreenSubtitle": "What did I do today?",
|
||||||
@ -66,6 +67,9 @@
|
|||||||
"loginScreenFormPasswordLabel": "Password",
|
"loginScreenFormPasswordLabel": "Password",
|
||||||
"loginScreenFormSubmitButton": "Login",
|
"loginScreenFormSubmitButton": "Login",
|
||||||
"loginScreenLoginFailed": "Email or password incorrect",
|
"loginScreenLoginFailed": "Email or password incorrect",
|
||||||
|
"loginScreenSignUpDialogTitle": "Sign up",
|
||||||
|
"loginScreenSignUpDialogExplanation": "We didn't find your account. Do you want to sign up now?",
|
||||||
|
"loginScreenSignUpDialogAffirmationLabel": "Sign me up now",
|
||||||
|
|
||||||
|
|
||||||
"grantPermissionScreenTitle": "Grant Permissions",
|
"grantPermissionScreenTitle": "Grant Permissions",
|
||||||
@ -105,7 +109,6 @@
|
|||||||
|
|
||||||
|
|
||||||
"memoryMapScreenTitle": "Location",
|
"memoryMapScreenTitle": "Location",
|
||||||
"memoryMapScreenExpandForMoreDescription": "Expand for more details",
|
|
||||||
"memoryMapScreenOpenNavigation": "Open Navigation",
|
"memoryMapScreenOpenNavigation": "Open Navigation",
|
||||||
"memoryMapScreenValuesAddressLabel": "Estimated Address",
|
"memoryMapScreenValuesAddressLabel": "Estimated Address",
|
||||||
"memoryMapScreenValuesAddressIsUnavailable": "Address not available",
|
"memoryMapScreenValuesAddressIsUnavailable": "Address not available",
|
||||||
|
@ -72,23 +72,47 @@ class _LoginScreenState extends AuthState<LoginScreen> with Loadable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<bool> _askWhetherToSignUp() {
|
||||||
|
final localizations = AppLocalizations.of(context)!;
|
||||||
|
|
||||||
|
return showPlatformDialog(
|
||||||
|
context: context,
|
||||||
|
builder: (_) => PlatformAlertDialog(
|
||||||
|
title: Text(localizations.loginScreenSignUpDialogTitle),
|
||||||
|
content: Text(localizations.loginScreenSignUpDialogExplanation),
|
||||||
|
actions: <Widget>[
|
||||||
|
PlatformDialogAction(
|
||||||
|
child: Text(localizations.generalCancelButtonLabel),
|
||||||
|
onPressed: () => Navigator.pop(context, false),
|
||||||
|
),
|
||||||
|
PlatformDialogAction(
|
||||||
|
child: Text(localizations.loginScreenSignUpDialogAffirmationLabel),
|
||||||
|
onPressed: () => Navigator.pop(context, true),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
) as Future<bool>;
|
||||||
|
}
|
||||||
|
|
||||||
Future<void> signIn() async {
|
Future<void> signIn() async {
|
||||||
final localizations = AppLocalizations.of(context)!;
|
final localizations = AppLocalizations.of(context)!;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await _signIn();
|
await _signIn();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
try {
|
if (await _askWhetherToSignUp()) {
|
||||||
await _signUp();
|
try {
|
||||||
} catch (error) {
|
await _signUp();
|
||||||
if (mounted) {
|
} catch (error) {
|
||||||
context.showLongErrorSnackBar(
|
if (mounted) {
|
||||||
message: localizations.loginScreenLoginFailed,
|
context.showLongErrorSnackBar(
|
||||||
);
|
message: localizations.loginScreenLoginFailed,
|
||||||
|
);
|
||||||
|
|
||||||
passwordController.clear();
|
passwordController.clear();
|
||||||
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,7 +158,10 @@ class _MainScreenState extends AuthRequiredState<MainScreen> with Loadable {
|
|||||||
settings.resolution,
|
settings.resolution,
|
||||||
imageFormatGroup: ImageFormatGroup.jpeg,
|
imageFormatGroup: ImageFormatGroup.jpeg,
|
||||||
);
|
);
|
||||||
cameraController.setFlashMode(FlashMode.off);
|
|
||||||
|
try {
|
||||||
|
cameraController.setFlashMode(FlashMode.off);
|
||||||
|
} catch (error) {}
|
||||||
|
|
||||||
await previousCameraController?.dispose();
|
await previousCameraController?.dispose();
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ class _MemoryMapScreenState extends State<MemoryMapScreen> with Loadable {
|
|||||||
const SheetIndicator(),
|
const SheetIndicator(),
|
||||||
const SizedBox(height: MEDIUM_SPACE),
|
const SizedBox(height: MEDIUM_SPACE),
|
||||||
Text(
|
Text(
|
||||||
localizations.memoryMapScreenExpandForMoreDescription,
|
localizations.generalSwipeForMore,
|
||||||
style: getBodyTextTextStyle(context),
|
style: getBodyTextTextStyle(context),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -237,6 +237,13 @@ class _MemorySheetState extends State<MemorySheet> with Loadable {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
if (widget.memory.location != null) ...[
|
||||||
|
const SizedBox(height: SMALL_SPACE),
|
||||||
|
Text(
|
||||||
|
localizations.generalSwipeForMore,
|
||||||
|
style: getBodyTextTextStyle(context),
|
||||||
|
),
|
||||||
|
],
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -67,9 +67,7 @@ class _PhotoSwitchingState extends State<PhotoSwitching> {
|
|||||||
final nextImage = NetworkImage(nextPhotoURL);
|
final nextImage = NetworkImage(nextPhotoURL);
|
||||||
precacheImage(nextImage, context);
|
precacheImage(nextImage, context);
|
||||||
|
|
||||||
setState(() {
|
images.add(nextImage);
|
||||||
images.add(nextImage);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> getNextPhoto() async {
|
Future<void> getNextPhoto() async {
|
||||||
|
@ -108,7 +108,7 @@ class _HelpSheetState extends State<HelpSheet> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dontShowSheetAgain) {
|
if (dontShowSheetAgain == true) {
|
||||||
await UserHelpSheetsManager.setAsShown(widget.helpID);
|
await UserHelpSheetsManager.setAsShown(widget.helpID);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -27,47 +27,45 @@ class _HelpSheetFormState extends State<HelpSheetForm> {
|
|||||||
final localizations = AppLocalizations.of(context)!;
|
final localizations = AppLocalizations.of(context)!;
|
||||||
|
|
||||||
return ModalSheet(
|
return ModalSheet(
|
||||||
child: SingleChildScrollView(
|
child: Column(
|
||||||
child: Column(
|
children: <Widget>[
|
||||||
children: <Widget>[
|
Text(
|
||||||
Text(
|
widget.title,
|
||||||
widget.title,
|
textAlign: TextAlign.center,
|
||||||
textAlign: TextAlign.center,
|
style: getTitleTextStyle(context),
|
||||||
style: getTitleTextStyle(context),
|
),
|
||||||
),
|
const SizedBox(height: MEDIUM_SPACE),
|
||||||
const SizedBox(height: MEDIUM_SPACE),
|
widget.helpContent,
|
||||||
widget.helpContent,
|
const SizedBox(height: LARGE_SPACE),
|
||||||
const SizedBox(height: LARGE_SPACE),
|
PlatformElevatedButton(
|
||||||
PlatformElevatedButton(
|
child: Text(localizations.generalUnderstoodButtonLabel),
|
||||||
child: Text(localizations.generalUnderstoodButtonLabel),
|
onPressed: () => Navigator.pop(context, dontShowSheetAgain),
|
||||||
onPressed: () => Navigator.pop(context, dontShowSheetAgain),
|
),
|
||||||
),
|
const SizedBox(height: SMALL_SPACE),
|
||||||
const SizedBox(height: SMALL_SPACE),
|
Row(
|
||||||
Row(
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
children: <Widget>[
|
||||||
children: <Widget>[
|
PlatformSwitch(
|
||||||
PlatformSwitch(
|
value: dontShowSheetAgain,
|
||||||
value: dontShowSheetAgain,
|
activeColor: platformThemeData(
|
||||||
activeColor: platformThemeData(
|
context,
|
||||||
context,
|
material: (data) => data.colorScheme.primary,
|
||||||
material: (data) => data.colorScheme.primary,
|
cupertino: (data) => data.primaryColor,
|
||||||
cupertino: (data) => data.primaryColor,
|
|
||||||
),
|
|
||||||
onChanged: (value) {
|
|
||||||
setState(() {
|
|
||||||
dontShowSheetAgain = value;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
const SizedBox(width: SMALL_SPACE),
|
onChanged: (value) {
|
||||||
Text(
|
setState(() {
|
||||||
localizations.helpSheetDontShowAgain,
|
dontShowSheetAgain = value;
|
||||||
style: getBodyTextTextStyle(context),
|
});
|
||||||
)
|
},
|
||||||
],
|
),
|
||||||
),
|
const SizedBox(width: SMALL_SPACE),
|
||||||
],
|
Text(
|
||||||
),
|
localizations.helpSheetDontShowAgain,
|
||||||
|
style: getBodyTextTextStyle(context),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -14,38 +14,36 @@ class ModalSheet extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final innerChild = Padding(
|
return SingleChildScrollView(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: MEDIUM_SPACE),
|
padding: const EdgeInsets.symmetric(vertical: MEDIUM_SPACE),
|
||||||
child: child,
|
child: Column(
|
||||||
);
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
children: [
|
||||||
return Column(
|
PlatformWidget(
|
||||||
mainAxisSize: MainAxisSize.min,
|
material: (_, __) => Container(
|
||||||
children: [
|
decoration: BoxDecoration(
|
||||||
PlatformWidget(
|
borderRadius: const BorderRadius.only(
|
||||||
material: (_, __) => Container(
|
topLeft: Radius.circular(LARGE_SPACE),
|
||||||
decoration: BoxDecoration(
|
topRight: Radius.circular(LARGE_SPACE),
|
||||||
borderRadius: const BorderRadius.only(
|
),
|
||||||
topLeft: Radius.circular(LARGE_SPACE),
|
color: getSheetColor(context),
|
||||||
topRight: Radius.circular(LARGE_SPACE),
|
|
||||||
),
|
),
|
||||||
color: getSheetColor(context),
|
padding: const EdgeInsets.symmetric(vertical: LARGE_SPACE),
|
||||||
|
child: child,
|
||||||
),
|
),
|
||||||
padding: const EdgeInsets.symmetric(vertical: LARGE_SPACE),
|
cupertino: (_, __) => CupertinoPopupSurface(
|
||||||
child: innerChild,
|
isSurfacePainted: false,
|
||||||
),
|
child: Container(
|
||||||
cupertino: (_, __) => CupertinoPopupSurface(
|
color: Colors.white,
|
||||||
isSurfacePainted: false,
|
child: Padding(
|
||||||
child: Container(
|
padding: const EdgeInsets.symmetric(vertical: LARGE_SPACE),
|
||||||
color: Colors.white,
|
child: child,
|
||||||
child: Padding(
|
),
|
||||||
padding: const EdgeInsets.symmetric(vertical: LARGE_SPACE),
|
|
||||||
child: innerChild,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
)
|
||||||
)
|
],
|
||||||
],
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user